diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-04 09:49:55 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-04 09:49:55 -0400 |
commit | 5029996547a9f3988459e11955c13259495308ef (patch) | |
tree | 4667c98c19a6f39dc820e4eb648ecfa03b29bce2 /fs/gfs2/glock.h | |
parent | e9fc2aa091ab8fa46e60d4c9d06a89305c441652 (diff) | |
download | linux-5029996547a9f3988459e11955c13259495308ef.tar.gz linux-5029996547a9f3988459e11955c13259495308ef.tar.bz2 linux-5029996547a9f3988459e11955c13259495308ef.zip |
[GFS2] Tidy up locking code
As per Jan Engelhardt's second email, this removes some unused code,
and fixes up indenting in various places.
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.h')
-rw-r--r-- | fs/gfs2/glock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/glock.h b/fs/gfs2/glock.h index 07a8d02a234d..1a90a1983beb 100644 --- a/fs/gfs2/glock.h +++ b/fs/gfs2/glock.h @@ -51,17 +51,17 @@ static inline int gfs2_glock_is_locked_by_me(struct gfs2_glock *gl) static inline int gfs2_glock_is_held_excl(struct gfs2_glock *gl) { - return (gl->gl_state == LM_ST_EXCLUSIVE); + return gl->gl_state == LM_ST_EXCLUSIVE; } static inline int gfs2_glock_is_held_dfrd(struct gfs2_glock *gl) { - return (gl->gl_state == LM_ST_DEFERRED); + return gl->gl_state == LM_ST_DEFERRED; } static inline int gfs2_glock_is_held_shrd(struct gfs2_glock *gl) { - return (gl->gl_state == LM_ST_SHARED); + return gl->gl_state == LM_ST_SHARED; } static inline int gfs2_glock_is_blocking(struct gfs2_glock *gl) |