memory_hotplug.c (d33695b16a9f0b5f62aefb0a4e073509690ee533) memory_hotplug.c (9b05158f5d805e0cf373f6e5a43efb9306bcb6a2)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/mm/memory_hotplug.c
4 *
5 * Copyright (C)
6 */
7
8#include <linux/stddef.h>

--- 341 unchanged lines hidden (view full) ---

350{
351 for (; start_pfn < end_pfn; start_pfn += PAGES_PER_SUBSECTION) {
352 if (unlikely(!pfn_to_online_page(start_pfn)))
353 continue;
354
355 if (unlikely(pfn_to_nid(start_pfn) != nid))
356 continue;
357
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/mm/memory_hotplug.c
4 *
5 * Copyright (C)
6 */
7
8#include <linux/stddef.h>

--- 341 unchanged lines hidden (view full) ---

350{
351 for (; start_pfn < end_pfn; start_pfn += PAGES_PER_SUBSECTION) {
352 if (unlikely(!pfn_to_online_page(start_pfn)))
353 continue;
354
355 if (unlikely(pfn_to_nid(start_pfn) != nid))
356 continue;
357
358 if (zone && zone != page_zone(pfn_to_page(start_pfn)))
358 if (zone != page_zone(pfn_to_page(start_pfn)))
359 continue;
360
361 return start_pfn;
362 }
363
364 return 0;
365}
366

--- 8 unchanged lines hidden (view full) ---

375 pfn = end_pfn - 1;
376 for (; pfn >= start_pfn; pfn -= PAGES_PER_SUBSECTION) {
377 if (unlikely(!pfn_to_online_page(pfn)))
378 continue;
379
380 if (unlikely(pfn_to_nid(pfn) != nid))
381 continue;
382
359 continue;
360
361 return start_pfn;
362 }
363
364 return 0;
365}
366

--- 8 unchanged lines hidden (view full) ---

375 pfn = end_pfn - 1;
376 for (; pfn >= start_pfn; pfn -= PAGES_PER_SUBSECTION) {
377 if (unlikely(!pfn_to_online_page(pfn)))
378 continue;
379
380 if (unlikely(pfn_to_nid(pfn) != nid))
381 continue;
382
383 if (zone && zone != page_zone(pfn_to_page(pfn)))
383 if (zone != page_zone(pfn_to_page(pfn)))
384 continue;
385
386 return pfn;
387 }
388
389 return 0;
390}
391

--- 1438 unchanged lines hidden ---
384 continue;
385
386 return pfn;
387 }
388
389 return 0;
390}
391

--- 1438 unchanged lines hidden ---