diff options
| author | Sang-Heon Jeon <ekffu200098@gmail.com> | 2026-07-03 13:13:29 +0900 |
|---|---|---|
| committer | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-07-03 11:16:27 +0300 |
| commit | e55424c84afd48aa2f0f761ae0c006128ef541cf (patch) | |
| tree | c13823592a1d73393243f0aee17b629c0fb23274 | |
| parent | f5a77a50a14dffb659ee8f550c824f8280e37fce (diff) | |
| download | linux-e55424c84afd48aa2f0f761ae0c006128ef541cf.tar.gz linux-e55424c84afd48aa2f0f761ae0c006128ef541cf.zip | |
mm: numa_memblks: use numa_add_reserved_memblk() in numa_cleanup_meminfo()
numa_cleanup_meminfo() calls the internal numa_add_memblk_to() to add a
block to numa_reserved_meminfo, even though numa_add_reserved_memblk() wraps
exactly that.
Use the wrapper instead, so numa_add_memblk_to() is reached only through its
two wrappers.
No functional change.
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Link: https://patch.msgid.link/20260703041329.2797584-10-ekffu200098@gmail.com
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
| -rw-r--r-- | mm/numa_memblks.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/numa_memblks.c b/mm/numa_memblks.c index 67dc9f4edd7b..be6e7346f6c7 100644 --- a/mm/numa_memblks.c +++ b/mm/numa_memblks.c @@ -255,8 +255,7 @@ int __init numa_cleanup_meminfo(struct numa_meminfo *mi) /* preserve info for non-RAM areas above 'max_pfn': */ if (bi->end > high) { - numa_add_memblk_to(bi->nid, high, bi->end, - &numa_reserved_meminfo); + numa_add_reserved_memblk(bi->nid, high, bi->end); bi->end = high; } |
