* [PATCH] maple_tree: Fix mas_find_rev() comment
@ 2022-10-25 17:38 Liam Howlett
0 siblings, 0 replies; only message in thread
From: Liam Howlett @ 2022-10-25 17:38 UTC (permalink / raw)
To: maple-tree, linux-mm, linux-kernel, Andrew Morton; +Cc: Liam Howlett
mas_find_rev() uses mas_prev_entry(), not mas_next_entry(), correct comment.
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
---
lib/maple_tree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index dee5ebd30256..2afb38437626 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -6057,7 +6057,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);
--
2.35.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-25 17:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-25 17:38 [PATCH] maple_tree: Fix mas_find_rev() comment Liam Howlett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox