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)
commitf7ad68bf98506f48129267438ada1255fc4edfa2
treeef06326ec2416d68d576a92ba3ed5b2be45f14b7
parent4feb7c7a4fbb8f63371be31cda79433c7cf3da86
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