Bob Peterson e9ec459266 gfs2: move privileged user check to gfs2_quota_lock_check
[ Upstream commit 4ed0c30811cb4d30ef89850b787a53a84d5d2bcb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-03 08:16:35 +02:00
..
2016-05-12 22:28:05 -04:00
2016-06-27 09:47:09 -05:00
2016-06-27 09:47:08 -05:00
2018-05-30 07:50:47 +02:00
2016-06-27 09:47:09 -05:00
2017-07-12 15:01:06 +02:00
2016-08-02 12:05:27 -05:00
2016-06-07 13:41:38 -06:00
2016-06-07 13:41:38 -06:00
2019-11-28 18:28:16 +01:00
2015-05-05 13:23:22 -05:00
2015-12-06 21:25:17 -05:00