diff options
author | Liam Howlett <liam.howlett@oracle.com> | 2022-10-25 17:38:14 +0000 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-12-01 15:48:50 -0800 |
commit | 1988e28b0385123d82b625d27dea006810ab3d31 (patch) | |
tree | 6bcca3ef10335c8d69ddd060722e14128f436468 | |
parent | 3aeec289ec0cda836482aeb0d026d8310a2c5533 (diff) | |
download | linux-1988e28b0385123d82b625d27dea006810ab3d31.tar.gz linux-1988e28b0385123d82b625d27dea006810ab3d31.tar.xz |
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>
-rw-r--r-- | lib/maple_tree.c | 2 |
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); |