]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: memory_hotplug: remove head variable in do_migrate_range()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Fri, 16 Aug 2024 09:04:31 +0000 (17:04 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 17 Aug 2024 00:53:26 +0000 (17:53 -0700)
commita1b6bffcca37b6af0c65494159cb3e8e3f5fb280
tree5ad2a7e733dc4ad00d9a678451959ad0d82a7d6b
parent413415ac609de286d585df3ec7a710c4ade778a1
mm: memory_hotplug: remove head variable in do_migrate_range()

Patch series "mm: memory_hotplug: improve do_migrate_range()", v2.

Unify hwpoisoned page handling and isolation of HugeTLB/LRU/non-LRU
movable page, also convert to use folios in do_migrate_range().

This patch (of 2):

Directly use a folio for HugeTLB and THP when calculate the next pfn, then
remove unused head variable.

Link: https://lkml.kernel.org/r/20240816090435.888946-1-wangkefeng.wang@huawei.com
Link: https://lkml.kernel.org/r/20240816090435.888946-2-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: 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>
mm/memory_hotplug.c