Skip to contentSkip to conversation

mm/mmap: fix comment of unmapped_area{_topdown}

PATCH Applied Vernon Yang 1 participant 1 message Jan 11, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 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 symbol to be [ instead of (.

And replace hight_limit to high_limit.

Fixes 3499a13168da ("mm/mmap: use maple tree for unmapped_area{_topdown}")

---

Changes since v1:
- replace hight_limit to high_limit.

v1: https://lore.kernel.org/linux-mm/[email protected]/

 mm/mmap.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
mm/mmap.c +5 -5
index 87d929316d57..ddb68aa52105 100644
@@ -1554,8 +1554,8 @@ 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 -
- * hight_limit), the alignment offset and mask.
+ * @info: The unmapped area information including the range [low_limit -
+ * high_limit), the alignment offset and mask.
  *
  * Return: A memory address or -ENOMEM.
  */
@@ -1581,11 +1581,11 @@ 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 -
- * hight_limit), the alignment offset and mask.
+ * @info: The unmapped area information including the range [low_limit -
+ * high_limit), the alignment offset and mask.
  *
  * Return: A memory address or -ENOMEM.
  */

--
2.34.1