Skip to content

Commit 914eec5

Browse files
Wengang-oracleakpm00
authored andcommitted
ocfs2: update seq_file index in ocfs2_dlm_seq_next
The following INFO level message was seen: seq_file: buggy .next function ocfs2_dlm_seq_next [ocfs2] did not update position index Fix: Update *pos (so m->index) to make seq_read_iter happy though the index its self makes no sense to ocfs2_dlm_seq_next. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Wengang Wang <[email protected]> Reviewed-by: Joseph Qi <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Cc: Changwei Ge <[email protected]> Cc: Jun Piao <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 031e04b commit 914eec5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/ocfs2/dlmglue.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3110,6 +3110,7 @@ static void *ocfs2_dlm_seq_next(struct seq_file *m, void *v, loff_t *pos)
31103110
struct ocfs2_lock_res *iter = v;
31113111
struct ocfs2_lock_res *dummy = &priv->p_iter_res;
31123112

3113+
(*pos)++;
31133114
spin_lock(&ocfs2_dlm_tracking_lock);
31143115
iter = ocfs2_dlm_next_res(iter, priv);
31153116
list_del_init(&dummy->l_debug_list);

0 commit comments

Comments
 (0)