diff options
author | 2019-11-04 11:12:44 +0100 | |
---|---|---|
committer | 2019-11-04 11:21:35 +0100 | |
commit | 2ec1f3011f3fdcbafcaad23aafa5acb6861a2646 (patch) | |
tree | 35e75e6bf65bf5d96aba286bffe15133d775820a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | quota: Drop dquot_enable() (diff) | |
download | wireguard-linux-2ec1f3011f3fdcbafcaad23aafa5acb6861a2646.tar.xz wireguard-linux-2ec1f3011f3fdcbafcaad23aafa5acb6861a2646.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions