From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Peterson Date: Thu, 16 Sep 2021 14:09:59 -0500 Subject: [Cluster-devel] [GFS2 PATCH v2 2/6] gfs2: Add GL_SKIP holder flag to dump_holder In-Reply-To: <20210916191003.105866-1-rpeterso@redhat.com> References: <20210916191003.105866-1-rpeterso@redhat.com> Message-ID: <20210916191003.105866-3-rpeterso@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- fs/gfs2/glock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index e0eaa9cf9fb6..6144d7fe28e6 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c @@ -2076,6 +2076,8 @@ static const char *hflags2str(char *buf, u16 flags, unsigned long iflags) *p++ = 'H'; if (test_bit(HIF_WAIT, &iflags)) *p++ = 'W'; + if (flags & GL_SKIP) + *p++ = 's'; *p = 0; return buf; } -- 2.31.1