]> 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)
committerJeff Layton <jlayton@kernel.org>
Fri, 29 Apr 2022 20:06:35 +0000 (16:06 -0400)
commit2d6835a13c8506439232aa57c75a89f94cef9df1
tree031aec67b1ac129b38cb4edda2299c38aae3b581
parent17c67c5717d234b99ba0305db92de88dba725303
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