summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2019-03-21 06:42:40 +0300
committerDavid S. Miller <davem@davemloft.net>2019-03-22 00:01:10 +0300
commitf7ad68bf98506f48129267438ada1255fc4edfa2 (patch)
treeef06326ec2416d68d576a92ba3ed5b2be45f14b7 /.clang-format
parent4feb7c7a4fbb8f63371be31cda79433c7cf3da86 (diff)
downloadlinux-f7ad68bf98506f48129267438ada1255fc4edfa2.tar.xz
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 '.clang-format')
-rw-r--r--.clang-format8
1 files changed, 4 insertions, 4 deletions
diff --git a/.clang-format b/.clang-format
index f49620f506f1..3a4c8220df2f 100644
--- a/.clang-format
+++ b/.clang-format
@@ -366,14 +366,14 @@ ForEachMacros:
- 'rhl_for_each_entry_rcu'
- 'rhl_for_each_rcu'
- 'rht_for_each'
- - 'rht_for_each_continue'
+ - 'rht_for_each_from'
- 'rht_for_each_entry'
- - 'rht_for_each_entry_continue'
+ - 'rht_for_each_entry_from'
- 'rht_for_each_entry_rcu'
- - 'rht_for_each_entry_rcu_continue'
+ - 'rht_for_each_entry_rcu_from'
- 'rht_for_each_entry_safe'
- 'rht_for_each_rcu'
- - 'rht_for_each_rcu_continue'
+ - 'rht_for_each_rcu_from'
- '__rq_for_each_bio'
- 'rq_for_each_segment'
- 'scsi_for_each_prot_sg'