fs: dlm: fix debugfs dump
authorAlexander Aring <aahringo@redhat.com>
Mon, 1 Mar 2021 22:05:08 +0000 (17:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:12:52 +0000 (10:12 +0200)
commit06d59d21cb05765e72a53b53a86c6be106bece88
tree2137e24b542a61f05efeb1578b7d5100f4013e5c
parentbd6017a942b9343c1e6a99eef9c64fa264a1a53b
fs: dlm: fix debugfs dump

[ Upstream commit 92c48950b43f4a767388cf87709d8687151a641f ]

This patch fixes the following message which randomly pops up during
glocktop call:

seq_file: buggy .next function table_seq_next did not update position index

The issue is that seq_read_iter() in fs/seq_file.c also needs an
increment of the index in an non next record case as well which this
patch fixes otherwise seq_read_iter() will print out the above message.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/dlm/debug_fs.c