diff options
Diffstat (limited to 'fs/gfs2/glock.c')
-rw-r--r-- | fs/gfs2/glock.c | 22 |
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 | ||
99 | static inline rwlock_t *gl_lock_addr(unsigned int x) | 99 | static 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 */ |
104 | static inline rwlock_t *gl_lock_addr(x) | 104 | static 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 | |||
1816 | void 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 | /** |