maple_tree: fix mas_find_rev() comment
authorLiam Howlett <liam.howlett@oracle.com>
Tue, 25 Oct 2022 17:38:14 +0000 (17:38 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 16 Dec 2022 00:37:49 +0000 (16:37 -0800)
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>
lib/maple_tree.c

index 3fe1491..fe3947b 100644 (file)
@@ -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);