]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: rename rht_for_each*continue as *from.
authorNeilBrown <neilb@suse.com>
Thu, 21 Mar 2019 03:42:40 +0000 (14:42 +1100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Mar 2019 21:01:10 +0000 (14:01 -0700)
commit476424c6ecb9bc085f0dd38282e19746664a5e37
treeef06326ec2416d68d576a92ba3ed5b2be45f14b7
parent80b4946e83c44f7bf2a907deb074924650f4397e
rhashtable: rename rht_for_each*continue as *from.

The pattern set by list.h is that for_each..continue()
iterators start at the next entry after the given one,
while for_each..from() iterators start at the given
entry.

The rht_for_each*continue() iterators are documented as though the
start at the 'next' entry, but actually start at the given entry,
and they are used expecting that behaviour.
So fix the documentation and change the names to *from for consistency
with list.h

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
.clang-format
include/linux/rhashtable.h
lib/rhashtable.c