Re: [PATCH 3/3] rhashtable: rename rht_for_each*continue as *from.

From
Miguel Ojeda <hidden>
Date
2019-03-17 07:50:26
Also in
lkml
Reply to
NeilBrown, 2019-03-14
On Thu, Mar 14, 2019 at 6:10 AM NeilBrown [off-list ref] wrote:
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
Thank you for taking care of the .clang-format changes!

Acked-by: Miguel Ojeda <redacted>

Cheers,
Miguel
Thread (14 messages) 14 messages, 4 authors, last reply 2019-03-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help