summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLiam Howlett <liam.howlett@oracle.com>2022-10-25 17:38:14 +0000
committerAndrew Morton <akpm@linux-foundation.org>2022-12-15 16:37:49 -0800
commitd98c86b9f7a4e1f5a7ead8ba5743952267f9e320 (patch)
treebe42d6f7d8860ed93e90cf029ffcf279c5f8fb28 /lib
parent61b963b52f59524e27692bc1c14bfb2459e32eb3 (diff)
maple_tree: fix mas_find_rev() comment
mas_find_rev() uses mas_prev_entry(), not mas_next_entry(), correct comment. Link: https://lkml.kernel.org/r/20221025173756.2719616-1-Liam.Howlett@oracle.com Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/maple_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index 3fe1491d2bf9..fe3947b80069 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -6062,7 +6062,7 @@ void *mas_find_rev(struct ma_state *mas, unsigned long min)
if (mas->index < min)
return NULL;
- /* Retries on dead nodes handled by mas_next_entry */
+ /* Retries on dead nodes handled by mas_prev_entry */
return mas_prev_entry(mas, min);
}
EXPORT_SYMBOL_GPL(mas_find_rev);