shmem: quota support
authorCarlos Maiolino <cem@kernel.org>
Tue, 25 Jul 2023 14:45:08 +0000 (16:45 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 9 Aug 2023 07:15:39 +0000 (09:15 +0200)
commite09764cff44b5d31c2ca5477444565e3080637d2
tree27c4d231ad28d0cd218536e9e740910c4be658df
parenteafc474e202978ac735c551d5ee1eb8c02e2be54
shmem: quota support

Now the basic infra-structure is in place, enable quota support for tmpfs.

This offers user and group quotas to tmpfs (project quotas will be added
later). Also, as other filesystems, the tmpfs quota is not supported
within user namespaces yet, so idmapping is not translated.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Message-Id: <20230725144510.253763-6-cem@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Documentation/filesystems/tmpfs.rst
include/linux/shmem_fs.h
mm/shmem.c