gfs2: split glock instantiation off from do_promote
authorBob Peterson <rpeterso@redhat.com>
Wed, 6 Oct 2021 13:59:52 +0000 (08:59 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 25 Oct 2021 06:42:19 +0000 (08:42 +0200)
commite6f856008d2364a16610d6269b6b38503d5e41a4
tree2a164e13c4e3fa49013ce84cbae493b93fa7cf71
parent60d8bae9d16a52346ba738518bd43702d15eb834
gfs2: split glock instantiation off from do_promote

Before this patch, function do_promote had a section of code that did
the actual instantiation.  This patch splits that off into its own
function, gfs2_instantiate, which prepares us for the next patch that
will use that function.

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