]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: use dedicated list iterator variable
authorJakob Koschel <jakobkoschel@gmail.com>
Thu, 31 Mar 2022 21:53:28 +0000 (23:53 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 18 May 2022 12:07:05 +0000 (14:07 +0200)
commitb776bb764dc853d62d3f1438b2384ec690e2d9d4
treec81e170f384d7f5a8102030d8cc9a64f2f5b286b
parent61aea6d3f04db51fef41d205b55e8f2dd59b50fa
ceph: use dedicated list iterator variable

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/
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/caps.c