Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+5 -5
+3 -3
fs/gfs2/glock.c
··· 2078 2078 dump_glock(NULL, gl, true); 2079 2079 } 2080 2080 2081 - static void withdraw_dq(struct gfs2_glock *gl) 2081 + static void withdraw_glock(struct gfs2_glock *gl) 2082 2082 { 2083 2083 spin_lock(&gl->gl_lockref.lock); 2084 2084 if (!__lockref_is_dead(&gl->gl_lockref)) ··· 2086 2086 spin_unlock(&gl->gl_lockref.lock); 2087 2087 } 2088 2088 2089 - void gfs2_gl_dq_holders(struct gfs2_sbd *sdp) 2089 + void gfs2_withdraw_glocks(struct gfs2_sbd *sdp) 2090 2090 { 2091 - glock_hash_walk(withdraw_dq, sdp); 2091 + glock_hash_walk(withdraw_glock, sdp); 2092 2092 } 2093 2093 2094 2094 /**
+1 -1
fs/gfs2/glock.h
··· 263 263 void gfs2_cancel_delete_work(struct gfs2_glock *gl); 264 264 void gfs2_flush_delete_work(struct gfs2_sbd *sdp); 265 265 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); 267 267 void gfs2_glock_thaw(struct gfs2_sbd *sdp); 268 268 void gfs2_glock_free(struct gfs2_glock *gl); 269 269 void gfs2_glock_free_later(struct gfs2_glock *gl);
+1 -1
fs/gfs2/util.c
··· 149 149 * Dequeue any pending non-system glock holders that can no 150 150 * longer be granted because the file system is withdrawn. 151 151 */ 152 - gfs2_gl_dq_holders(sdp); 152 + gfs2_withdraw_glocks(sdp); 153 153 } 154 154 155 155 gfs2_thaw_freeze_initiator(sdp->sd_vfs);