Skip to content

Commit 3aca2ce

Browse files
RichardWeiYangrppt
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mike Rapoport (IBM) <[email protected]>
1 parent f6df89c commit 3aca2ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mm/memblock.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,8 @@ bool __init_memblock memblock_validate_numa_coverage(unsigned long threshold_byt
777777
* Walk @type and ensure that regions don't cross the boundaries defined by
778778
* [@base, @base + @size). Crossing regions are split at the boundaries,
779779
* which may create at most two more regions. The index of the first
780-
* region inside the range is returned in *@start_rgn and end in *@end_rgn.
780+
* region inside the range is returned in *@start_rgn and the index of the
781+
* first region after the range is returned in *@end_rgn.
781782
*
782783
* Return:
783784
* 0 on success, -errno on failure.

0 commit comments

Comments
 (0)