Skip to contentSkip to conversation

go_drop_bh is never used, so remove it

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

lore
Share & tools
lore
#0 lore raw

Hi,

The ->go_drop_bh function is never used, so this removes it and the single caller,

Steve.

fs/gfs2/glock.c +0 -3
index 6618c11..8597fde 100644
@@ -953,9 +953,6 @@ static void drop_bh(struct gfs2_glock *gl, unsigned int ret)
 		spin_unlock(&gl->gl_spin);
 	}
 
-	if (glops->go_drop_bh)
-		glops->go_drop_bh(gl);
-
 	spin_lock(&gl->gl_spin);
 	gl->gl_req_gh = NULL;
 	gl->gl_req_bh = NULL;
fs/gfs2/incore.h +0 -1
index 12c80fd..139f84a 100644
@@ -104,7 +104,6 @@ struct gfs2_glock_operations {
 	void (*go_xmote_th) (struct gfs2_glock *gl);
 	void (*go_xmote_bh) (struct gfs2_glock *gl);
 	void (*go_drop_th) (struct gfs2_glock *gl);
-	void (*go_drop_bh) (struct gfs2_glock *gl);
 	void (*go_inval) (struct gfs2_glock *gl, int flags);
 	int (*go_demote_ok) (struct gfs2_glock *gl);
 	int (*go_lock) (struct gfs2_holder *gh);