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>
此提交包含在:
@@ -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;
|
||||
|
||||
|
新增問題並參考
封鎖使用者