[Cluster-devel] [GFS2] Remove unused function pointer in glock_operations

Steven Whitehouse swhiteho at redhat.com
Thu Jan 18 15:43:03 UTC 2007


Hi,

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

Steve.


diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index fb1960b..efdeb66 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -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);
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index 9114851..3004255 100644
--- a/fs/gfs2/incore.h
+++ b/fs/gfs2/incore.h
@@ -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;
 };





More information about the Cluster-devel mailing list