aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/memblock.c
diff options
context:
space:
mode:
authorZi Yan <ziy@nvidia.com>2024-08-09 10:59:06 -0400
committerAndrew Morton <akpm@linux-foundation.org>2024-09-01 20:26:06 -0700
commit727d50a7e07259291981b5d84607dc9966def4b1 (patch)
treeba441dbfe855161b8b307eafeed7f9a418ff84b0 /mm/memblock.c
parentmemcg: replace memcg ID idr with xarray (diff)
downloadwireguard-linux-727d50a7e07259291981b5d84607dc9966def4b1.tar.xz
wireguard-linux-727d50a7e07259291981b5d84607dc9966def4b1.zip
mm/migrate: move common code to numa_migrate_check (was numa_migrate_prep)
do_numa_page() and do_huge_pmd_numa_page() share a lot of common code. To reduce redundancy, move common code to numa_migrate_prep() and rename the function to numa_migrate_check() to reflect its functionality. Now do_huge_pmd_numa_page() also checks shared folios to set TNF_SHARED flag. Link: https://lkml.kernel.org/r/20240809145906.1513458-4-ziy@nvidia.com Signed-off-by: Zi Yan <ziy@nvidia.com> Suggested-by: David Hildenbrand <david@redhat.com> Reviewed-by: "Huang, Ying" <ying.huang@intel.com> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Acked-by: David Hildenbrand <david@redhat.com> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Mel Gorman <mgorman@suse.de> Cc: Yang Shi <shy828301@gmail.com> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memblock.c')
0 files changed, 0 insertions, 0 deletions