mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
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 <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
parent
f9615fe311
commit
e6ce26e571
@ -1210,9 +1210,6 @@ int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid,
|
||||
if (!test_bit(GIF_QD_LOCKED, &ip->i_flags))
|
||||
return 0;
|
||||
|
||||
if (sdp->sd_args.ar_quota != GFS2_QUOTA_ON)
|
||||
return 0;
|
||||
|
||||
for (x = 0; x < ip->i_qadata->qa_qd_num; x++) {
|
||||
qd = ip->i_qadata->qa_qd[x];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user