]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
gfs2: remove check for quotas on in gfs2_quota_check
authorBob Peterson <rpeterso@redhat.com>
Tue, 5 May 2020 16:52:51 +0000 (11:52 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 8 May 2020 16:47:39 +0000 (18:47 +0200)
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>
fs/gfs2/quota.c

index a62be4267c170373558e213e99e128bcf1267744..c997cadc8d9a07467db2ed733f9d7b1d6028075b 100644 (file)
@@ -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];