Skip to contentSkip to conversation

Remove unused function pointer in glock_operations

Cluster-devel Steven Whitehouse 1 participant 1 message Jan 18, 2007 GFS2 file system

lore
Share & tools
lore
#0 lore raw

Hi,

This code is entirely unused, so this patch removes it.

Steve.

fs/gfs2/glock.c +0 -2
index fb1960b..efdeb66 100644
@@ -1641,8 +1641,6 @@ static void blocking_cb(struct gfs2_sbd 
 	if (!gl)
 		return;
 
-	if (gl->gl_ops->go_callback)
-		gl->gl_ops->go_callback(gl, state);
 	handle_callback(gl, state);
 
 	spin_lock(&gl->gl_spin);
fs/gfs2/incore.h +0 -1
index 9114851..3004255 100644
@@ -110,7 +110,6 @@ struct gfs2_glock_operations {
 	int (*go_demote_ok) (struct gfs2_glock *gl);
 	int (*go_lock) (struct gfs2_holder *gh);
 	void (*go_unlock) (struct gfs2_holder *gh);
-	void (*go_callback) (struct gfs2_glock *gl, unsigned int state);
 	void (*go_greedy) (struct gfs2_glock *gl);
 	const int go_type;
 };