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)
commite6ce26e571a813e6992c5148b27f2a4b17952080
tree2ad21797f05caaa649ddc738cc90825449cbf30a
parentf9615fe3113f1067093f7f68d46d281b4c9a5978
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>
fs/gfs2/quota.c