summaryrefslogtreecommitdiffstats
path: root/mm/mmzone.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2020-05-05 11:53:21 -0500
committerAndreas Gruenbacher <agruenba@redhat.com>2020-05-08 18:47:58 +0200
commit4ed0c30811cb4d30ef89850b787a53a84d5d2bcb (patch)
tree7a9ea7fad5138fa93377f285bc3b44f872fb833a /mm/mmzone.c
parente6ce26e571a813e6992c5148b27f2a4b17952080 (diff)
downloadlinux-4ed0c30811cb4d30ef89850b787a53a84d5d2bcb.tar.bz2
gfs2: move privileged user check to gfs2_quota_lock_check
Before this patch, function gfs2_quota_lock checked if it was called from a privileged user, and if so, it bypassed the quota check: superuser can operate outside the quotas. That's the wrong place for the check because the lock/unlock functions are separate from the lock_check function, and you can do lock and unlock without actually checking the quotas. This patch moves the check to gfs2_quota_lock_check. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'mm/mmzone.c')
0 files changed, 0 insertions, 0 deletions