aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.c
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/gfs2/glock.c
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/gfs2/glock.c')
-rw-r--r--fs/gfs2/glock.c22
1 files changed, 2 insertions, 20 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/**