Skip to content

Commit 473678c

Browse files
author
Andreas Gruenbacher
committed
gfs2: Rename gfs2_{gl_dq_holders => withdraw_glocks}
Rename function gfs2_gl_dq_holders() to gfs2_withdraw_glocks(). This function will soon be used for more than just dequeuing holders. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent 655531c commit 473678c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

fs/gfs2/glock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2078,17 +2078,17 @@ static void dump_glock_func(struct gfs2_glock *gl)
20782078
dump_glock(NULL, gl, true);
20792079
}
20802080

2081-
static void withdraw_dq(struct gfs2_glock *gl)
2081+
static void withdraw_glock(struct gfs2_glock *gl)
20822082
{
20832083
spin_lock(&gl->gl_lockref.lock);
20842084
if (!__lockref_is_dead(&gl->gl_lockref))
20852085
do_error(gl, LM_OUT_ERROR); /* remove pending waiters */
20862086
spin_unlock(&gl->gl_lockref.lock);
20872087
}
20882088

2089-
void gfs2_gl_dq_holders(struct gfs2_sbd *sdp)
2089+
void gfs2_withdraw_glocks(struct gfs2_sbd *sdp)
20902090
{
2091-
glock_hash_walk(withdraw_dq, sdp);
2091+
glock_hash_walk(withdraw_glock, sdp);
20922092
}
20932093

20942094
/**

fs/gfs2/glock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ bool gfs2_queue_verify_delete(struct gfs2_glock *gl, bool later);
263263
void gfs2_cancel_delete_work(struct gfs2_glock *gl);
264264
void gfs2_flush_delete_work(struct gfs2_sbd *sdp);
265265
void gfs2_gl_hash_clear(struct gfs2_sbd *sdp);
266-
void gfs2_gl_dq_holders(struct gfs2_sbd *sdp);
266+
void gfs2_withdraw_glocks(struct gfs2_sbd *sdp);
267267
void gfs2_glock_thaw(struct gfs2_sbd *sdp);
268268
void gfs2_glock_free(struct gfs2_glock *gl);
269269
void gfs2_glock_free_later(struct gfs2_glock *gl);

fs/gfs2/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static void do_withdraw(struct gfs2_sbd *sdp)
149149
* Dequeue any pending non-system glock holders that can no
150150
* longer be granted because the file system is withdrawn.
151151
*/
152-
gfs2_gl_dq_holders(sdp);
152+
gfs2_withdraw_glocks(sdp);
153153
}
154154

155155
gfs2_thaw_freeze_initiator(sdp->sd_vfs);

0 commit comments

Comments
 (0)