gfs2: Update rl_unlinked before releasing rgrp lock
authorBob Peterson <rpeterso@redhat.com>
Thu, 4 May 2023 18:27:42 +0000 (14:27 -0400)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 6 Jun 2023 16:35:06 +0000 (18:35 +0200)
commit17a5934653826644ba8c1ad21b9fc8d6e7e62f34
tree92d876924c3b1f319ae19dd7a758df1904cf5308
parentdac0fc31bea78e3ac1467d2fdb49ffff37e95e84
gfs2: Update rl_unlinked before releasing rgrp lock

Function gfs2_free_di was changing the rgrp lvb count of unlinked
dinodes after the lock was released. This patch moves it inside the
lock.

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