diff options
author | Carlos Maiolino <cem@kernel.org> | 2024-07-17 08:37:27 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-09-01 20:25:45 -0700 |
commit | 9eace7e8e60c3ac821c417bd3f3aa5949e58a57a (patch) | |
tree | 34178ff83e18764cad4788181057b9a55137754b /mm/shmem_quota.c | |
parent | fcb4824b264058f9ee1ac2aa6b7155468978fde6 (diff) | |
download | lwn-9eace7e8e60c3ac821c417bd3f3aa5949e58a57a.tar.gz lwn-9eace7e8e60c3ac821c417bd3f3aa5949e58a57a.zip |
shmem_quota: build the object file conditionally to the config option
Initially I added shmem-quota to obj-y, move it to the correct place and
remove the unneeded full file #ifdef
Link: https://lkml.kernel.org/r/20240717063737.910840-1-cem@kernel.org
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
Suggested-by: Aristeu Rozanski <aris@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/shmem_quota.c')
-rw-r--r-- | mm/shmem_quota.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/shmem_quota.c b/mm/shmem_quota.c index ce514e700d2f..d1e32ac01407 100644 --- a/mm/shmem_quota.c +++ b/mm/shmem_quota.c @@ -34,8 +34,6 @@ #include <linux/quotaops.h> #include <linux/quota.h> -#ifdef CONFIG_TMPFS_QUOTA - /* * The following constants define the amount of time given a user * before the soft limits are treated as hard limits (usually resulting @@ -351,4 +349,3 @@ const struct dquot_operations shmem_quota_operations = { .mark_dirty = shmem_mark_dquot_dirty, .get_next_id = shmem_get_next_id, }; -#endif /* CONFIG_TMPFS_QUOTA */ |