]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita3264cb337dbf9620931b2c76f5220ac5bb9fd9e
tree2ad21797f05caaa649ddc738cc90825449cbf30a
parentf00c4ba99f9981bedeb18687d2b59427c4030c90
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