diff options
| author | Zi Yan <ziy@nvidia.com> | 2024-08-09 10:59:06 -0400 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2024-09-01 20:26:06 -0700 |
| commit | 727d50a7e07259291981b5d84607dc9966def4b1 (patch) | |
| tree | ba441dbfe855161b8b307eafeed7f9a418ff84b0 /include/linux | |
| parent | 07222371912c835d12b3541791d0516f50c7b45b (diff) | |
| download | linux-727d50a7e07259291981b5d84607dc9966def4b1.tar.gz linux-727d50a7e07259291981b5d84607dc9966def4b1.tar.bz2 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 'include/linux')
0 files changed, 0 insertions, 0 deletions
