gfs2: further simplify do_promote
authorBob Peterson <rpeterso@redhat.com>
Wed, 6 Oct 2021 12:59:59 +0000 (07:59 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 25 Oct 2021 06:42:19 +0000 (08:42 +0200)
commit60d8bae9d16a52346ba738518bd43702d15eb834
tree7b0a86f2936932868c05ff6459e08c36723dd1d7
parent17a6eceeb1c54a0a4af5b03ccc1de7ab824408bc
gfs2: further simplify do_promote

This patch further simplifies function do_promote by eliminating some
redundant code in favor of using a lock_released flag. This is just
prep work for a future patch.

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