summaryrefslogtreecommitdiff
path: root/fs/gfs2/inode.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2023-09-20 21:07:06 +0300
committerAndreas Gruenbacher <agruenba@redhat.com>2023-09-22 14:42:19 +0300
commit21d9067efc7fe94d2bc6f7c7ce71834d5766bbd8 (patch)
tree5b966591477981790bd6c3354913f2f3d11283c6 /fs/gfs2/inode.c
parentb4bf3d5c37d404b05356869cdbd16450f3ba02a0 (diff)
downloadlinux-21d9067efc7fe94d2bc6f7c7ce71834d5766bbd8.tar.xz
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/inode.c')
-rw-r--r--fs/gfs2/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index 0eac04507904..2880d6ca19e1 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
@@ -2153,7 +2153,7 @@ static int gfs2_update_time(struct inode *inode, int flags)
int error;
gh = gfs2_glock_is_locked_by_me(gl);
- if (gh && !gfs2_glock_is_held_excl(gl)) {
+ if (gh && gl->gl_state != LM_ST_EXCLUSIVE) {
gfs2_glock_dq(gh);
gfs2_holder_reinit(LM_ST_EXCLUSIVE, 0, gh);
error = gfs2_glock_nq(gh);