diff options
author | Bob Peterson <rpeterso@redhat.com> | 2020-06-09 13:29:08 -0400 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2020-08-03 13:20:13 +0200 |
commit | 5deaf1f63bafcec48e70e70669c567072c574f69 (patch) | |
tree | 8f6d6a5a496e5ac12307a5250c4d8e9d4c3d4545 /fs/gfs2 | |
parent | 11ba468877bb23f28956a35e896356252d63c983 (diff) |
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 <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/glock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 8545024a1401..57134d326cfa 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c @@ -2106,6 +2106,12 @@ static const char *gflags2str(char *buf, const struct gfs2_glock *gl) *p++ = 'o'; if (test_bit(GLF_BLOCKING, gflags)) *p++ = 'b'; + if (test_bit(GLF_INODE_CREATING, gflags)) + *p++ = 'c'; + if (test_bit(GLF_PENDING_DELETE, gflags)) + *p++ = 'P'; + if (test_bit(GLF_FREEING, gflags)) + *p++ = 'x'; *p = 0; return buf; } |