]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: migrate: add isolate_folio_to_list()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Fri, 16 Aug 2024 09:04:34 +0000 (17:04 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:53:27 +0000 (17:53 -0700)
commit489fd1548b831776509a976763159954abcc6653
tree3630e7c8f08c0dbf15a84bd2a1ed2f3eb497c0ba
parent0bf1be86fd6d3326f04f341dc7b7b8c6b61339d6
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/20240816090435.888946-5-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/migrate.h
mm/memory-failure.c
mm/migrate.c