summaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2021-03-01 17:05:08 -0500
committerDavid Teigland <teigland@redhat.com>2021-03-09 08:56:42 -0600
commit92c48950b43f4a767388cf87709d8687151a641f (patch)
tree5ad5da6507af0985e032de3db6e06635760a8bdf /fs/dlm
parenta38fd8748464831584a19438cbb3082b5a2dab15 (diff)
downloadlinux-92c48950b43f4a767388cf87709d8687151a641f.tar.gz
linux-92c48950b43f4a767388cf87709d8687151a641f.tar.bz2
linux-92c48950b43f4a767388cf87709d8687151a641f.zip
fs: dlm: fix debugfs dump
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>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/debug_fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c
index d6bbccb0ed15..d5bd990bcab8 100644
--- a/fs/dlm/debug_fs.c
+++ b/fs/dlm/debug_fs.c
@@ -542,6 +542,7 @@ static void *table_seq_next(struct seq_file *seq, void *iter_ptr, loff_t *pos)
if (bucket >= ls->ls_rsbtbl_size) {
kfree(ri);
+ ++*pos;
return NULL;
}
tree = toss ? &ls->ls_rsbtbl[bucket].toss : &ls->ls_rsbtbl[bucket].keep;