diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2023-09-20 20:07:06 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2023-09-22 13:42:19 +0200 |
commit | 21d9067efc7fe94d2bc6f7c7ce71834d5766bbd8 (patch) | |
tree | 5b966591477981790bd6c3354913f2f3d11283c6 /fs/gfs2/glock.h | |
parent | b4bf3d5c37d404b05356869cdbd16450f3ba02a0 (diff) | |
download | linux-21d9067efc7fe94d2bc6f7c7ce71834d5766bbd8.tar.gz linux-21d9067efc7fe94d2bc6f7c7ce71834d5766bbd8.tar.bz2 linux-21d9067efc7fe94d2bc6f7c7ce71834d5766bbd8.zip |
gfs2: Get rid of the gfs2_glock_is_held_* helpers
Those helpers don't add any clarity and are easy to use wrong. Spell
them out to make more obvious what's happening.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.h')
-rw-r--r-- | fs/gfs2/glock.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/fs/gfs2/glock.h b/fs/gfs2/glock.h index c8685ca7d2a2..4daad53f9436 100644 --- a/fs/gfs2/glock.h +++ b/fs/gfs2/glock.h @@ -156,21 +156,6 @@ out: return gh; } -static inline int gfs2_glock_is_held_excl(struct gfs2_glock *gl) -{ - 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; -} - -static inline int gfs2_glock_is_held_shrd(struct gfs2_glock *gl) -{ - return gl->gl_state == LM_ST_SHARED; -} - static inline struct address_space *gfs2_glock2aspace(struct gfs2_glock *gl) { if (gl->gl_ops->go_flags & GLOF_ASPACE) { |