From: Steven Whitehouse Date: Fri, 19 Jan 2007 18:57:36 +0000 (-0500) Subject: [GFS2] Remove unused go_callback operation X-Git-Tag: v2.6.21-rc1~92^2~35^2~26 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bd9c8c2fb99d1f5af6201db2f063c1d754c230a;p=linux-2.6 [GFS2] Remove unused go_callback operation This is never used, so we might as well remove it. Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 90847e0957..8e4b55a2bd 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c @@ -1568,8 +1568,6 @@ static void blocking_cb(struct gfs2_sbd *sdp, struct lm_lockname *name, 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 dc024b18ea..1acbcc2415 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); const int go_type; };