OSDN Git Service

gfs2: Add some flags missing from glock output
authorBob Peterson <rpeterso@redhat.com>
Tue, 9 Jun 2020 17:29:08 +0000 (13:29 -0400)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 3 Aug 2020 11:20:13 +0000 (13:20 +0200)
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>
fs/gfs2/glock.c

index 8545024..57134d3 100644 (file)
@@ -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;
 }