WSL2-Linux-Kernel/fs/ocfs2/dlm
Jakob Koschel b02da32b61 ocfs2: remove usage of list iterator variable after the loop body
To move the list iterator variable into the list_for_each_entry_*() macro
in the future it should be avoided to use the list iterator variable after
the loop body.

To *never* use the list iterator variable after the loop it was concluded
to use a separate iterator variable [1].

Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/
Link: https://lkml.kernel.org/r/20220322105014.3626194-1-jakobkoschel@gmail.com
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-04-29 14:37:57 -07:00
..
Makefile ocfs2: make local header paths relative to C files 2020-01-31 10:30:36 -08:00
dlmapi.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
dlmast.c treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
dlmcommon.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
dlmconvert.c treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
dlmconvert.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
dlmdebug.c ocfs2: remove usage of list iterator variable after the loop body 2022-04-29 14:37:57 -07:00
dlmdebug.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
dlmdomain.c all: replace find_next{,_zero}_bit with find_first{,_zero}_bit where appropriate 2022-01-15 08:47:31 -08:00
dlmdomain.h treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
dlmlock.c treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
dlmmaster.c all: replace find_next{,_zero}_bit with find_first{,_zero}_bit where appropriate 2022-01-15 08:47:31 -08:00
dlmrecovery.c all: replace find_next{,_zero}_bit with find_first{,_zero}_bit where appropriate 2022-01-15 08:47:31 -08:00
dlmthread.c all: replace find_next{,_zero}_bit with find_first{,_zero}_bit where appropriate 2022-01-15 08:47:31 -08:00
dlmunlock.c ocfs2: replace usage of found with dedicated list iterator variable 2022-04-29 14:37:57 -07:00