mm/mmap: fix comment of unmapped_area{_topdown}
Subsystems (2)
PATCH 1/1 mm/mmap: fix comment of unmapped_area{_topdown}
The low_limit of unmapped area information is inclusive, and the hight_limit is not, so make the comment to correct.
--- mm/mmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/mmap.c +3 -3
@@ -1554,7 +1554,7 @@ static inline int accountable_mapping(struct file *file, vm_flags_t vm_flags)* the correct alignment and offset, all from @info. Note: current->mm is used * for the search. * -* @info: The unmapped area information including the range (low_limit - +* @info: The unmapped area information including the range [low_limit - * hight_limit), the alignment offset and mask. * * Return: A memory address or -ENOMEM.
@@ -1581,10 +1581,10 @@ static unsigned long unmapped_area(struct vm_unmapped_area_info *info)/** * unmapped_area_topdown() - Find an area between the low_limit and the -* high_limit with * the correct alignment and offset at the highest available +* high_limit with the correct alignment and offset at the highest available * address, all from @info. Note: current->mm is used for the search. * -* @info: The unmapped area information including the range (low_limit - +* @info: The unmapped area information including the range [low_limit - * hight_limit), the alignment offset and mask. * * Return: A memory address or -ENOMEM.
Signature · 1 line
2.34.1
Quoted 3 lines · Vernon Yang
- * @info: The unmapped area information including the range (
low_limit-
+ * @info: The unmapped area information including the range [low_limit-
*hight_limit), the alignment offset and mask.
s/hight_limit/high_limit/
Quoted 3 lines
- * @info: The unmapped area information including the range (
low_limit-
+ * @info: The unmapped area information including the range [low_limit-
*hight_limit), the alignment offset and mask.
ditto
Quoted 6 lines · Matthew Wilcox
Quoted 3 lines · Vernon Yang
- * @info: The unmapped area information including the range (
low_limit-
+ * @info: The unmapped area information including the range [low_limit-
*hight_limit), the alignment offset and mask.s/hight_limit/high_limit/
Okay, thanks you for review.
Quoted 6 lines
Quoted 4 lines
- * @info: The unmapped area information including the range (
low_limit-
+ * @info: The unmapped area information including the range [low_limit-
*hight_limit), the alignment offset and mask.ditto