aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mm_init.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2023-05-23 20:51:01 +0000
committerAndrew Morton <[email protected]>2023-08-18 17:12:00 +0000
commitfad9c80e6371ee04a3fa5728efe20b88d8e4cccd (patch)
tree7b19d44f64d526eded6637af2a55dffaa026f4b5 /mm/mm_init.c
parentmm: madvise: fix uneven accounting of psi (diff)
downloadkernel-fad9c80e6371ee04a3fa5728efe20b88d8e4cccd.tar.gz
kernel-fad9c80e6371ee04a3fa5728efe20b88d8e4cccd.zip
maple_tree: fix a few documentation issues
The documentation of mt_next() claims that it starts the search at the provided index. That's incorrect as it starts the search after the provided index. The documentation of mt_find() is slightly confusing. "Handles locking" is not really helpful as it does not explain how the "locking" works. Also the documentation of index talks about a range, while in reality the index is updated on a succesful search to the index of the found entry plus one. Fix similar issues for mt_find_after() and mt_prev(). Reword the confusing "Note: Will not return the zero entry." comment on mt_for_each() and document @__index correctly. Link: https://lkml.kernel.org/r/87ttw2n556.ffs@tglx Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Shanker Donthineni <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/mm_init.c')
0 files changed, 0 insertions, 0 deletions