summaryrefslogtreecommitdiffstats
path: root/lib/maple_tree.c
diff options
context:
space:
mode:
authorLiam Howlett <liam.howlett@oracle.com>2022-10-25 19:38:14 +0200
committerAndrew Morton <akpm@linux-foundation.org>2022-12-16 01:37:49 +0100
commitd98c86b9f7a4e1f5a7ead8ba5743952267f9e320 (patch)
treebe42d6f7d8860ed93e90cf029ffcf279c5f8fb28 /lib/maple_tree.c
parentmm/gup_test: free memory allocated via kvcalloc() using kvfree() (diff)
downloadlinux-d98c86b9f7a4e1f5a7ead8ba5743952267f9e320.tar.xz
linux-d98c86b9f7a4e1f5a7ead8ba5743952267f9e320.zip
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/maple_tree.c')
-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);