Searched hist:"2 ec1f301" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/quota/ |
H A D | dquot.c | 2ec1f301 Mon Nov 04 04:12:44 CST 2019 Jan Kara <jack@suse.cz> quota: Make dquot_disable() work without quota inodes
Quota on and quota off are protected by s_umount semaphore held in exclusive mode since commit 7d6cd73d33b6 "quota: Hold s_umount in exclusive mode when enabling / disabling quotas". This makes it impossible for dquot_disable() to race with other enabling or disabling of quotas. Simplify the cleanup done by dquot_disable() based on this fact and also remove some stale comments. As a bonus this cleanup makes dquot_disable() properly handle a case when there are no quota inodes.
Signed-off-by: Jan Kara <jack@suse.cz>
|