summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2021-09-29 15:06:21 -0500
committerAndreas Gruenbacher <agruenba@redhat.com>2021-10-25 08:42:18 +0200
commit3278b977c9c4c51a4e5e04fb40a991fb28edc2b7 (patch)
treec9cdd9c5ee1aeed959cf37f86111f0bc44b6776d /fs/gfs2/glock.c
parenta739765cd8e69560d61d512e6847f6e24f8aea99 (diff)
downloadlinux-stable-3278b977c9c4c51a4e5e04fb40a991fb28edc2b7.tar.gz
linux-stable-3278b977c9c4c51a4e5e04fb40a991fb28edc2b7.tar.bz2
linux-stable-3278b977c9c4c51a4e5e04fb40a991fb28edc2b7.zip
gfs2: change go_lock to go_instantiate
Before this patch, the go_lock glock operations (glops) did not do any actual locking. They were used to instantiate objects, like reading in dinodes and rgrps from the media. This patch renames the functions to go_instantiate for clarity. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r--fs/gfs2/glock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 54a1ed373ff3..7053628d129e 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -501,11 +501,11 @@ restart:
first_gh = gh;
}
if (gh->gh_list.prev == &gl->gl_holders &&
- glops->go_lock) {
+ glops->go_instantiate) {
if (!(gh->gh_flags & GL_SKIP)) {
spin_unlock(&gl->gl_lockref.lock);
/* FIXME: eliminate this eventually */
- ret = glops->go_lock(gh);
+ ret = glops->go_instantiate(gh);
spin_lock(&gl->gl_lockref.lock);
if (ret) {
if (ret == 1)