diff options
author | Jan Kara <jack@suse.cz> | 2017-08-03 05:18:23 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2017-08-17 16:00:45 -0400 |
commit | 834057bf846691552a8906f7ed3f67546e5f897c (patch) | |
tree | 2cabc0f1d1d7325e7efb61db7a6b32c7e9cc6941 /include/linux/quota.h | |
parent | 503330f3820fab13aa2a7b1f9e7633686acc7c79 (diff) |
quota: Allow disabling tracking of dirty dquots in a list
Filesystems that are journalling quotas generally don't need tracking of
dirty dquots in a list since forcing a transaction commit flushes all
quotas anyway. Allow filesystem to say it doesn't want dquots to be
tracked as it reduces contention on the dq_list_lock.
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/quota.h')
-rw-r--r-- | include/linux/quota.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h index ad6809f099ac..eccc1cb6274e 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h | |||
@@ -490,6 +490,9 @@ enum { | |||
490 | */ | 490 | */ |
491 | #define DQUOT_NEGATIVE_USAGE (1 << (DQUOT_STATE_LAST + 1)) | 491 | #define DQUOT_NEGATIVE_USAGE (1 << (DQUOT_STATE_LAST + 1)) |
492 | /* Allow negative quota usage */ | 492 | /* Allow negative quota usage */ |
493 | /* Do not track dirty dquots in a list */ | ||
494 | #define DQUOT_NOLIST_DIRTY (1 << (DQUOT_STATE_LAST + 2)) | ||
495 | |||
493 | static inline unsigned int dquot_state_flag(unsigned int flags, int type) | 496 | static inline unsigned int dquot_state_flag(unsigned int flags, int type) |
494 | { | 497 | { |
495 | return flags << type; | 498 | return flags << type; |