mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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>
This commit is contained in:
parent
11ba468877
commit
5deaf1f63b
1 changed files with 6 additions and 0 deletions
|
@ -2106,6 +2106,12 @@ static const char *gflags2str(char *buf, const struct gfs2_glock *gl)
|
||||||
*p++ = 'o';
|
*p++ = 'o';
|
||||||
if (test_bit(GLF_BLOCKING, gflags))
|
if (test_bit(GLF_BLOCKING, gflags))
|
||||||
*p++ = 'b';
|
*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;
|
*p = 0;
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue