From: Steven Whitehouse Date: Thu, 18 Jan 2007 15:43:03 +0000 Subject: [Cluster-devel] [GFS2] Remove unused function pointer in glock_operations Message-ID: <1169134983.11844.109.camel@quoit.chygwyn.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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; };