diff options
author | 2024-08-27 19:47:27 +0800 | |
---|---|---|
committer | 2024-09-03 21:15:59 -0700 | |
commit | f1264e9531b0fbadf88e0b9c8143c546343b481c (patch) | |
tree | 24dd107a1e7ad5f79848c2d21922d717fe3a8ea6 /mm/page_alloc.c | |
parent | mm: memory_hotplug: check hwpoisoned page firstly in do_migrate_range() (diff) | |
download | linux-rng-f1264e9531b0fbadf88e0b9c8143c546343b481c.tar.xz linux-rng-f1264e9531b0fbadf88e0b9c8143c546343b481c.zip |
mm: migrate: add isolate_folio_to_list()
Add isolate_folio_to_list() helper to try to isolate HugeTLB, no-LRU
movable and LRU folios to a list, which will be reused by
do_migrate_range() from memory hotplug soon, also drop the
mf_isolate_folio() since we could directly use new helper in the
soft_offline_in_use_page().
Link: https://lkml.kernel.org/r/20240827114728.3212578-5-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Miaohe Lin <linmiaohe@huawei.com>
Tested-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions