# Re: \[PATCH 3/3\] rhashtable: rename rht\_for\_each\*continue as \*from.

- From: NeilBrown \<hidden\>
- Date: 2019-03-18 00:15:13 
- List: netdev
- Page: https://ratatoskr.run/netdev/2019/03/5540748
- Thread: https://ratatoskr.run/netdev/2019/03/5538648/t.md

```text
On Sun, Mar 17 2019, Miguel Ojeda wrote:

> On Thu, Mar 14, 2019 at 6:10 AM NeilBrown [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!

:-) that's what "git grep" is for!

>
> Acked-by: Miguel Ojeda <redacted>

Thanks,
NeilBrown

>
> Cheers,
> Miguel
```

## Attachments

- [signature.asc](https://ratatoskr.run/netdev/2019/03/5540748/attachment/0) (application/pgp-signature, 832 bytes)
