diff options
| author | Bob Peterson <[email protected]> | 2020-05-05 11:53:21 -0500 |
|---|---|---|
| committer | Andreas Gruenbacher <[email protected]> | 2020-05-08 18:47:58 +0200 |
| commit | 4ed0c30811cb4d30ef89850b787a53a84d5d2bcb (patch) | |
| tree | 7a9ea7fad5138fa93377f285bc3b44f872fb833a /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
| parent | e6ce26e571a813e6992c5148b27f2a4b17952080 (diff) | |
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 <[email protected]>
Signed-off-by: Andreas Gruenbacher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions