summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/util.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2024-04-07 12:55:44 +0200
committerAndreas Gruenbacher <agruenba@redhat.com>2024-04-29 12:35:15 +0200
commitfcd63086bc14b1689866d7b0c61958f6b7e48604 (patch)
treefd790d5034bfd7066f83da8471b13f3793567b04 /fs/gfs2/util.c
parent1e86044402c45b70a9b31beeaefb5cc732a7470c (diff)
downloadlinux-fcd63086bc14b1689866d7b0c61958f6b7e48604.tar.gz
linux-fcd63086bc14b1689866d7b0c61958f6b7e48604.tar.bz2
linux-fcd63086bc14b1689866d7b0c61958f6b7e48604.zip
gfs2: gfs2_freeze_unlock cleanup
Function gfs2_freeze_unlock() is always called with &sdp->sd_freeze_gh as its argument, so clean up the code by passing in sdp instead. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/util.c')
-rw-r--r--fs/gfs2/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/util.c b/fs/gfs2/util.c
index 09238604d741..af4758d8d894 100644
--- a/fs/gfs2/util.c
+++ b/fs/gfs2/util.c
@@ -109,10 +109,10 @@ int gfs2_freeze_lock_shared(struct gfs2_sbd *sdp)
return error;
}
-void gfs2_freeze_unlock(struct gfs2_holder *freeze_gh)
+void gfs2_freeze_unlock(struct gfs2_sbd *sdp)
{
- if (gfs2_holder_initialized(freeze_gh))
- gfs2_glock_dq_uninit(freeze_gh);
+ if (gfs2_holder_initialized(&sdp->sd_freeze_gh))
+ gfs2_glock_dq_uninit(&sdp->sd_freeze_gh);
}
static void signal_our_withdraw(struct gfs2_sbd *sdp)