Skip to content

Commit 5deaf1f

Browse files
AstralBobAndreas Gruenbacher
authored andcommitted
gfs2: Add some flags missing from glock output
Before this patch, three flags were not represented in the glock output. This patch adds them in: c - GLF_INODE_CREATING P - GLF_PENDING_DELETE x - GLF_FREEING (both f and F are already used) Signed-off-by: Bob Peterson <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 11ba468 commit 5deaf1f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fs/gfs2/glock.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,6 +2106,12 @@ static const char *gflags2str(char *buf, const struct gfs2_glock *gl)
21062106
*p++ = 'o';
21072107
if (test_bit(GLF_BLOCKING, gflags))
21082108
*p++ = 'b';
2109+
if (test_bit(GLF_INODE_CREATING, gflags))
2110+
*p++ = 'c';
2111+
if (test_bit(GLF_PENDING_DELETE, gflags))
2112+
*p++ = 'P';
2113+
if (test_bit(GLF_FREEING, gflags))
2114+
*p++ = 'x';
21092115
*p = 0;
21102116
return buf;
21112117
}

0 commit comments

Comments
 (0)