diff options
Diffstat (limited to 'lib/rhashtable.c')
-rw-r--r-- | lib/rhashtable.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/rhashtable.c b/lib/rhashtable.c index ddd7dde87c3c..1935e86ed477 100644 --- a/lib/rhashtable.c +++ b/lib/rhashtable.c | |||
@@ -732,7 +732,7 @@ void rhashtable_walk_exit(struct rhashtable_iter *iter) | |||
732 | EXPORT_SYMBOL_GPL(rhashtable_walk_exit); | 732 | EXPORT_SYMBOL_GPL(rhashtable_walk_exit); |
733 | 733 | ||
734 | /** | 734 | /** |
735 | * rhashtable_walk_start - Start a hash table walk | 735 | * rhashtable_walk_start_check - Start a hash table walk |
736 | * @iter: Hash table iterator | 736 | * @iter: Hash table iterator |
737 | * | 737 | * |
738 | * Start a hash table walk at the current iterator position. Note that we take | 738 | * Start a hash table walk at the current iterator position. Note that we take |
@@ -744,8 +744,12 @@ EXPORT_SYMBOL_GPL(rhashtable_walk_exit); | |||
744 | * Returns -EAGAIN if resize event occured. Note that the iterator | 744 | * Returns -EAGAIN if resize event occured. Note that the iterator |
745 | * will rewind back to the beginning and you may use it immediately | 745 | * will rewind back to the beginning and you may use it immediately |
746 | * by calling rhashtable_walk_next. | 746 | * by calling rhashtable_walk_next. |
747 | * | ||
748 | * rhashtable_walk_start is defined as an inline variant that returns | ||
749 | * void. This is preferred in cases where the caller would ignore | ||
750 | * resize events and always continue. | ||
747 | */ | 751 | */ |
748 | int rhashtable_walk_start(struct rhashtable_iter *iter) | 752 | int rhashtable_walk_start_check(struct rhashtable_iter *iter) |
749 | __acquires(RCU) | 753 | __acquires(RCU) |
750 | { | 754 | { |
751 | struct rhashtable *ht = iter->ht; | 755 | struct rhashtable *ht = iter->ht; |
@@ -764,7 +768,7 @@ int rhashtable_walk_start(struct rhashtable_iter *iter) | |||
764 | 768 | ||
765 | return 0; | 769 | return 0; |
766 | } | 770 | } |
767 | EXPORT_SYMBOL_GPL(rhashtable_walk_start); | 771 | EXPORT_SYMBOL_GPL(rhashtable_walk_start_check); |
768 | 772 | ||
769 | /** | 773 | /** |
770 | * rhashtable_walk_next - Return the next object and advance the iterator | 774 | * rhashtable_walk_next - Return the next object and advance the iterator |