diff options
author | NeilBrown <neilb@suse.com> | 2019-03-21 14:42:40 +1100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-21 14:01:10 -0700 |
commit | f7ad68bf98506f48129267438ada1255fc4edfa2 (patch) | |
tree | ef06326ec2416d68d576a92ba3ed5b2be45f14b7 /lib/rhashtable.c | |
parent | 4feb7c7a4fbb8f63371be31cda79433c7cf3da86 (diff) | |
download | linux-next-f7ad68bf98506f48129267438ada1255fc4edfa2.tar.gz |
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>
Diffstat (limited to 'lib/rhashtable.c')
-rw-r--r-- | lib/rhashtable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rhashtable.c b/lib/rhashtable.c index 776b3a82d3a1..f65e43fb1ff8 100644 --- a/lib/rhashtable.c +++ b/lib/rhashtable.c @@ -490,7 +490,7 @@ static void *rhashtable_lookup_one(struct rhashtable *ht, elasticity = RHT_ELASTICITY; pprev = rht_bucket_var(tbl, hash); - rht_for_each_continue(head, *pprev, tbl, hash) { + rht_for_each_from(head, *pprev, tbl, hash) { struct rhlist_head *list; struct rhlist_head *plist; |