Skip to content

Commit fb95d53

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
gfs2: Fix quota=quiet oversight
Patch eef46ab 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: eef46ab ("gfs2: Introduce new quota=quiet mount option") Signed-off-by: Bob Peterson <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 6286248 commit fb95d53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/gfs2/quota.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ static inline int gfs2_quota_lock_check(struct gfs2_inode *ip,
5050
ret = gfs2_quota_lock(ip, NO_UID_QUOTA_CHANGE, NO_GID_QUOTA_CHANGE);
5151
if (ret)
5252
return ret;
53-
if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON)
53+
if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON &&
54+
sdp->sd_args.ar_quota != GFS2_QUOTA_QUIET)
5455
return 0;
5556
ret = gfs2_quota_check(ip, ip->i_inode.i_uid, ip->i_inode.i_gid, ap);
5657
if (ret)

0 commit comments

Comments
 (0)