gfs2: don't call quota_unhold if quotas are not locked
authorBob Peterson <rpeterso@redhat.com>
Tue, 5 May 2020 16:55:03 +0000 (11:55 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 8 May 2020 16:49:04 +0000 (18:49 +0200)
commitc9cb9e381985bbbe8acd2695bbe6bd24bf06b81c
tree27333146aaede63dbb6659990b638a61d2708d1d
parent4ed0c30811cb4d30ef89850b787a53a84d5d2bcb
gfs2: don't call quota_unhold if quotas are not locked

Before this patch, function gfs2_quota_unlock checked if quotas are
turned off, and if so, it branched to label out, which called
gfs2_quota_unhold. With the new system of gfs2_qa_get and put, we
no longer want to call gfs2_quota_unhold or we won't balance our
gets and puts.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/quota.c