Bob Peterson 4ed0c30811 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>
2020-05-08 18:47:58 +02:00
..
2019-07-03 14:45:18 +02:00
2020-05-08 15:15:12 +02:00
2020-05-08 14:45:38 +02:00
2019-09-04 20:22:17 +02:00
2020-05-08 15:15:12 +02:00
2019-06-08 12:52:42 -07:00
2020-05-06 21:25:26 +02:00