Skip to content

Commit e6ce26e

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
gfs2: remove check for quotas on in gfs2_quota_check
This patch removes a check from gfs2_quota_check for whether quotas are enabled by the superblock. There is a test just prior for the GIF_QD_LOCKED bit in the inode, and that can only be set by functions that already check that quotas are enabled in the superblock. Therefore, the check is redundant. Signed-off-by: Bob Peterson <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent f9615fe commit e6ce26e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/gfs2/quota.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,9 +1210,6 @@ int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid,
12101210
if (!test_bit(GIF_QD_LOCKED, &ip->i_flags))
12111211
return 0;
12121212

1213-
if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON)
1214-
return 0;
1215-
12161213
for (x = 0; x < ip->i_qadata->qa_qd_num; x++) {
12171214
qd = ip->i_qadata->qa_qd[x];
12181215

0 commit comments

Comments
 (0)