diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2009-09-11 15:21:56 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2009-12-03 11:49:30 +0000 |
commit | 91094d0fb650decd8bf48b85d86c892d7ca913ee (patch) | |
tree | ed3b0ba8e852e8491d203df07766e4c37ed12d87 /fs/gfs2/glock.h | |
parent | cc632e7f93465597896862cf9e50baefb1999215 (diff) | |
download | linux-91094d0fb650decd8bf48b85d86c892d7ca913ee.tar.gz linux-91094d0fb650decd8bf48b85d86c892d7ca913ee.tar.bz2 linux-91094d0fb650decd8bf48b85d86c892d7ca913ee.zip |
GFS2: Remove obsolete code in quota.c
There is no point in testing for GLF_DEMOTE here, we might as
well always release the glock at that point.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.h')
-rw-r--r-- | fs/gfs2/glock.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/gfs2/glock.h b/fs/gfs2/glock.h index c609894ec0d0..13f0bd228132 100644 --- a/fs/gfs2/glock.h +++ b/fs/gfs2/glock.h @@ -180,15 +180,6 @@ static inline int gfs2_glock_is_held_shrd(struct gfs2_glock *gl) return gl->gl_state == LM_ST_SHARED; } -static inline int gfs2_glock_is_blocking(struct gfs2_glock *gl) -{ - int ret; - spin_lock(&gl->gl_spin); - ret = test_bit(GLF_DEMOTE, &gl->gl_flags); - spin_unlock(&gl->gl_spin); - return ret; -} - int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number, const struct gfs2_glock_operations *glops, int create, struct gfs2_glock **glp); |