diff options
author | Jan Kara <jack@suse.cz> | 2008-09-30 11:53:37 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 11:36:57 -0500 |
commit | ca785ec66b991e9ca74dd9840fc014487ad095e1 (patch) | |
tree | 271c7b36123e9c16f455ecd96352d24ecd20423c /include | |
parent | dcb30695f2cac86b71417629a6fe8042b4fe2ab2 (diff) |
quota: Introduce DQUOT_QUOTA_SYS_FILE flag
If filesystem can handle quota files as system files hidden from users, we can
skip a lot of cache invalidation, syncing, inode flags setting etc. when
turning quotas on, off and quota_sync. Allow filesystem to indicate that it is
hiding quota files from users by DQUOT_QUOTA_SYS_FILE flag.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/quota.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h index 93717abcd35b..80b8807b4988 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h | |||
@@ -332,6 +332,13 @@ enum { | |||
332 | #define DQUOT_SUSPENDED (1 << _DQUOT_SUSPENDED) | 332 | #define DQUOT_SUSPENDED (1 << _DQUOT_SUSPENDED) |
333 | #define DQUOT_STATE_FLAGS (DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED | \ | 333 | #define DQUOT_STATE_FLAGS (DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED | \ |
334 | DQUOT_SUSPENDED) | 334 | DQUOT_SUSPENDED) |
335 | /* Other quota flags */ | ||
336 | #define DQUOT_QUOTA_SYS_FILE (1 << 6) /* Quota file is a special | ||
337 | * system file and user cannot | ||
338 | * touch it. Filesystem is | ||
339 | * responsible for setting | ||
340 | * S_NOQUOTA, S_NOATIME flags | ||
341 | */ | ||
335 | 342 | ||
336 | static inline unsigned int dquot_state_flag(unsigned int flags, int type) | 343 | static inline unsigned int dquot_state_flag(unsigned int flags, int type) |
337 | { | 344 | { |