aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-09-09 18:59:27 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-09-09 18:59:27 -0400
commit94610610f10749c0e17b4d2840ff8a7cb636c413 (patch)
tree718d81be51c29da312136d93ca62f4f8071637f0 /fs
parenta5e08a9ef50e8b6feb099f8e4b253df04f5ec9db (diff)
[GFS2] Remove unused function from glock.c
The callback for iopen locks is unused, so this removes it. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/glock.c22
-rw-r--r--fs/gfs2/glock.h2
-rw-r--r--fs/gfs2/glops.c1
3 files changed, 2 insertions, 23 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index e941183bbcdb..b348053c4363 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -98,7 +98,7 @@ static rwlock_t gl_hash_locks[GL_HASH_LOCK_SZ];
98 98
99static inline rwlock_t *gl_lock_addr(unsigned int x) 99static inline rwlock_t *gl_lock_addr(unsigned int x)
100{ 100{
101 return &gl_hash_locks[(x) & (GL_HASH_LOCK_SZ-1)]; 101 return &gl_hash_locks[x & (GL_HASH_LOCK_SZ-1)];
102} 102}
103#else /* not SMP, so no spinlocks required */ 103#else /* not SMP, so no spinlocks required */
104static inline rwlock_t *gl_lock_addr(x) 104static inline rwlock_t *gl_lock_addr(x)
@@ -1806,22 +1806,6 @@ void gfs2_glock_cb(void *cb_data, unsigned int type, void *data)
1806} 1806}
1807 1807
1808/** 1808/**
1809 * gfs2_iopen_go_callback - Try to kick the inode/vnode associated with an
1810 * iopen glock from memory
1811 * @io_gl: the iopen glock
1812 * @state: the state into which the glock should be put
1813 *
1814 */
1815
1816void gfs2_iopen_go_callback(struct gfs2_glock *io_gl, unsigned int state)
1817{
1818
1819 if (state != LM_ST_UNLOCKED)
1820 return;
1821 /* FIXME: remove this? */
1822}
1823
1824/**
1825 * demote_ok - Check to see if it's ok to unlock a glock 1809 * demote_ok - Check to see if it's ok to unlock a glock
1826 * @gl: the glock 1810 * @gl: the glock
1827 * 1811 *
@@ -2000,10 +1984,8 @@ void gfs2_scand_internal(struct gfs2_sbd *sdp)
2000{ 1984{
2001 unsigned int x; 1985 unsigned int x;
2002 1986
2003 for (x = 0; x < GFS2_GL_HASH_SIZE; x++) { 1987 for (x = 0; x < GFS2_GL_HASH_SIZE; x++)
2004 examine_bucket(scan_glock, sdp, x); 1988 examine_bucket(scan_glock, sdp, x);
2005 cond_resched();
2006 }
2007} 1989}
2008 1990
2009/** 1991/**
diff --git a/fs/gfs2/glock.h b/fs/gfs2/glock.h
index 52b8a308635a..2b2a889ee2cc 100644
--- a/fs/gfs2/glock.h
+++ b/fs/gfs2/glock.h
@@ -142,8 +142,6 @@ void gfs2_lvb_unhold(struct gfs2_glock *gl);
142 142
143void gfs2_glock_cb(void *cb_data, unsigned int type, void *data); 143void gfs2_glock_cb(void *cb_data, unsigned int type, void *data);
144 144
145void gfs2_iopen_go_callback(struct gfs2_glock *gl, unsigned int state);
146
147void gfs2_glock_schedule_for_reclaim(struct gfs2_glock *gl); 145void gfs2_glock_schedule_for_reclaim(struct gfs2_glock *gl);
148void gfs2_reclaim_glock(struct gfs2_sbd *sdp); 146void gfs2_reclaim_glock(struct gfs2_sbd *sdp);
149 147
diff --git a/fs/gfs2/glops.c b/fs/gfs2/glops.c
index 0c50a720d01d..d3aef74ea5d4 100644
--- a/fs/gfs2/glops.c
+++ b/fs/gfs2/glops.c
@@ -529,7 +529,6 @@ const struct gfs2_glock_operations gfs2_trans_glops = {
529const struct gfs2_glock_operations gfs2_iopen_glops = { 529const struct gfs2_glock_operations gfs2_iopen_glops = {
530 .go_xmote_th = gfs2_glock_xmote_th, 530 .go_xmote_th = gfs2_glock_xmote_th,
531 .go_drop_th = gfs2_glock_drop_th, 531 .go_drop_th = gfs2_glock_drop_th,
532 .go_callback = gfs2_iopen_go_callback,
533 .go_type = LM_TYPE_IOPEN, 532 .go_type = LM_TYPE_IOPEN,
534}; 533};
535 534