]> git.baikalelectronics.ru Git - kernel.git/commit
quota: Remove dq_wait_unused from dquot
authorJan Kara <jack@suse.cz>
Wed, 2 Aug 2017 15:18:50 +0000 (17:18 +0200)
committerJan Kara <jack@suse.cz>
Thu, 17 Aug 2017 20:00:40 +0000 (22:00 +0200)
commit0b0fa63bbe847b594504ded60d0d827fdacc9597
treea6d568090a06de55939d9ac3e997eb512eb9695d
parent8b799f7ce2115e532ba8b9d7c643c289892c5b44
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>
fs/quota/dquot.c
include/linux/quota.h