aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2023-09-18 08:13:41 -0500
committerAndreas Gruenbacher <agruenba@redhat.com>2023-09-18 16:26:24 +0200
commitfb95d536080e6c1db099f0023f59cd55adcc5d87 (patch)
tree594a66758feca7edaa49ba157c9f094e7dfa062b
parent62862485a4c3a52029fc30f4bdde9af04afdafc9 (diff)
downloadlinux-fb95d536080e6c1db099f0023f59cd55adcc5d87.tar.gz
gfs2: Fix quota=quiet oversight
Patch eef46ab713f7 introduced a new gfs2 quota=quiet mount option. Checks for the new option were added to quota.c, but a check in gfs2_quota_lock_check() was overlooked. This patch adds the missing check. Fixes: eef46ab713f7 ("gfs2: Introduce new quota=quiet mount option") Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
-rw-r--r--fs/gfs2/quota.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/quota.h b/fs/gfs2/quota.h
index 21ada332d55571..1429945215a039 100644
--- a/fs/gfs2/quota.h
+++ b/fs/gfs2/quota.h
@@ -50,7 +50,8 @@ static inline int gfs2_quota_lock_check(struct gfs2_inode *ip,
ret = gfs2_quota_lock(ip, NO_UID_QUOTA_CHANGE, NO_GID_QUOTA_CHANGE);
if (ret)
return ret;
- if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON)
+ if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON &&
+ sdp->sd_args.ar_quota != GFS2_QUOTA_QUIET)
return 0;
ret = gfs2_quota_check(ip, ip->i_inode.i_uid, ip->i_inode.i_gid, ap);
if (ret)