gfs2: Fix gfs2_qa_get imbalance in gfs2_quota_hold
authorBob Peterson <rpeterso@redhat.com>
Mon, 15 May 2023 16:37:57 +0000 (11:37 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 6 Jun 2023 16:35:06 +0000 (18:35 +0200)
commitdac0fc31bea78e3ac1467d2fdb49ffff37e95e84
tree71e3e1b0dff5325b8c21875d86627c1209bffa73
parent9b620429eca9a1dbadf6cf983b11d2cb427411ce
gfs2: Fix gfs2_qa_get imbalance in gfs2_quota_hold

This patch fixes a case in which function gfs2_quota_hold encounters an
assert error and exits. The lack of gfs2_qa_put causes further problems
when the inode is evicted and the get/put count is non-zero.

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