summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2021-09-13 12:40:09 -0500
committerAndreas Gruenbacher <agruenba@redhat.com>2021-10-25 08:42:17 +0200
commit4c69038d9087109e4dcf559cd0ecb44875af3089 (patch)
tree273e72e6f2cc40dcf8e11e867fc048b722d363ea /fs
parent6edb6ba333d31bb42d9ab8b1b6ff1c5ecbc3813c (diff)
gfs2: Add GL_SKIP holder flag to dump_holder
Somehow, the GL_SKIP flag was missed when dumping glock holders. This patch adds it to function hflags2str. I added it at the end because I wanted Holder and Skip flags together to read "Hs" rather than "sH" to avoid confusion with "Shared" ("SH") holder state. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/glock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index f686083d0250..ff1227287284 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -2238,6 +2238,8 @@ static const char *hflags2str(char *buf, u16 flags, unsigned long iflags)
*p++ = 'W';
if (test_bit(HIF_MAY_DEMOTE, &iflags))
*p++ = 'D';
+ if (flags & GL_SKIP)
+ *p++ = 's';
*p = 0;
return buf;
}