summaryrefslogtreecommitdiffstats
path: root/mm/memblock.c
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2024-05-07 09:58:29 +0200
committerMike Rapoport (IBM) <rppt@kernel.org>2024-06-05 09:22:22 +0200
commit3aca2cea907c647ee7720b7ba22734f9e8e7cfa3 (patch)
tree4b6de54cd9fecec547a0c33c3fc64540c711cac9 /mm/memblock.c
parentmemblock tests: add memblock_reserve_many_may_conflict_check() (diff)
downloadlinux-3aca2cea907c647ee7720b7ba22734f9e8e7cfa3.tar.xz
linux-3aca2cea907c647ee7720b7ba22734f9e8e7cfa3.zip
mm/memblock: fix comment for memblock_isolate_range()
The isolated range is [*@start_rgn, *@end_rgn - 1], while the comment says "the end region inside the range" is *@end_rgn. Let's correct it. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Link: https://lore.kernel.org/r/20240507075833.6346-4-richard.weiyang@gmail.com Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Diffstat (limited to 'mm/memblock.c')
-rw-r--r--mm/memblock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/memblock.c b/mm/memblock.c
index 98d25689cf10..7f3cd96d6769 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -777,7 +777,8 @@ bool __init_memblock memblock_validate_numa_coverage(unsigned long threshold_byt
* Walk @type and ensure that regions don't cross the boundaries defined by
* [@base, @base + @size). Crossing regions are split at the boundaries,
* which may create at most two more regions. The index of the first
- * region inside the range is returned in *@start_rgn and end in *@end_rgn.
+ * region inside the range is returned in *@start_rgn and the index of the
+ * first region after the range is returned in *@end_rgn.
*
* Return:
* 0 on success, -errno on failure.