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>pull/1354/merge
parent
655531c95b
commit
473678ccb9
|
|
@ -2078,7 +2078,7 @@ static void dump_glock_func(struct gfs2_glock *gl)
|
||||||
dump_glock(NULL, gl, true);
|
dump_glock(NULL, gl, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void withdraw_dq(struct gfs2_glock *gl)
|
static void withdraw_glock(struct gfs2_glock *gl)
|
||||||
{
|
{
|
||||||
spin_lock(&gl->gl_lockref.lock);
|
spin_lock(&gl->gl_lockref.lock);
|
||||||
if (!__lockref_is_dead(&gl->gl_lockref))
|
if (!__lockref_is_dead(&gl->gl_lockref))
|
||||||
|
|
@ -2086,9 +2086,9 @@ static void withdraw_dq(struct gfs2_glock *gl)
|
||||||
spin_unlock(&gl->gl_lockref.lock);
|
spin_unlock(&gl->gl_lockref.lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void gfs2_gl_dq_holders(struct gfs2_sbd *sdp)
|
void gfs2_withdraw_glocks(struct gfs2_sbd *sdp)
|
||||||
{
|
{
|
||||||
glock_hash_walk(withdraw_dq, sdp);
|
glock_hash_walk(withdraw_glock, sdp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@ bool gfs2_queue_verify_delete(struct gfs2_glock *gl, bool later);
|
||||||
void gfs2_cancel_delete_work(struct gfs2_glock *gl);
|
void gfs2_cancel_delete_work(struct gfs2_glock *gl);
|
||||||
void gfs2_flush_delete_work(struct gfs2_sbd *sdp);
|
void gfs2_flush_delete_work(struct gfs2_sbd *sdp);
|
||||||
void gfs2_gl_hash_clear(struct gfs2_sbd *sdp);
|
void gfs2_gl_hash_clear(struct gfs2_sbd *sdp);
|
||||||
void gfs2_gl_dq_holders(struct gfs2_sbd *sdp);
|
void gfs2_withdraw_glocks(struct gfs2_sbd *sdp);
|
||||||
void gfs2_glock_thaw(struct gfs2_sbd *sdp);
|
void gfs2_glock_thaw(struct gfs2_sbd *sdp);
|
||||||
void gfs2_glock_free(struct gfs2_glock *gl);
|
void gfs2_glock_free(struct gfs2_glock *gl);
|
||||||
void gfs2_glock_free_later(struct gfs2_glock *gl);
|
void gfs2_glock_free_later(struct gfs2_glock *gl);
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ static void do_withdraw(struct gfs2_sbd *sdp)
|
||||||
* Dequeue any pending non-system glock holders that can no
|
* Dequeue any pending non-system glock holders that can no
|
||||||
* longer be granted because the file system is withdrawn.
|
* longer be granted because the file system is withdrawn.
|
||||||
*/
|
*/
|
||||||
gfs2_gl_dq_holders(sdp);
|
gfs2_withdraw_glocks(sdp);
|
||||||
}
|
}
|
||||||
|
|
||||||
gfs2_thaw_freeze_initiator(sdp->sd_vfs);
|
gfs2_thaw_freeze_initiator(sdp->sd_vfs);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue