summaryrefslogtreecommitdiffstats
path: root/include/linux/quota.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2017-08-02 11:18:50 -0400
committerJan Kara <jack@suse.cz>2017-08-17 16:00:40 -0400
commit503330f3820fab13aa2a7b1f9e7633686acc7c79 (patch)
treea6d568090a06de55939d9ac3e997eb512eb9695d /include/linux/quota.h
parent1e0b7cb062f227439a1d8e7921e85c8df52adc41 (diff)
quota: Remove dq_wait_unused from dquot
Currently every dquot carries a wait_queue_head_t used only when we are turning quotas off to wait for last users to drop dquot references. Since such rare case is not performance sensitive in any means, just use a global waitqueue for this and save space in struct dquot. Also convert the logic to use wait_event() instead of open-coding it. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/quota.h')
-rw-r--r--include/linux/quota.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h
index 3a6df7461642..ad6809f099ac 100644
--- a/include/linux/quota.h
+++ b/include/linux/quota.h
@@ -299,7 +299,6 @@ struct dquot {
299 struct list_head dq_dirty; /* List of dirty dquots */ 299 struct list_head dq_dirty; /* List of dirty dquots */
300 struct mutex dq_lock; /* dquot IO lock */ 300 struct mutex dq_lock; /* dquot IO lock */
301 atomic_t dq_count; /* Use count */ 301 atomic_t dq_count; /* Use count */
302 wait_queue_head_t dq_wait_unused; /* Wait queue for dquot to become unused */
303 struct super_block *dq_sb; /* superblock this applies to */ 302 struct super_block *dq_sb; /* superblock this applies to */
304 struct kqid dq_id; /* ID this applies to (uid, gid, projid) */ 303 struct kqid dq_id; /* ID this applies to (uid, gid, projid) */
305 loff_t dq_off; /* Offset of dquot on disk */ 304 loff_t dq_off; /* Offset of dquot on disk */