mm: huge_memory: use folio_last_cpupid() in __split_huge_page_tail()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 18 Oct 2023 14:07:52 +0000 (22:07 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 25 Oct 2023 23:47:12 +0000 (16:47 -0700)
Convert to use folio_last_cpupid() in __split_huge_page_tail().

Link: https://lkml.kernel.org/r/20231018140806.2783514-6-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Huang Ying <ying.huang@intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c

index f9571bf92603678e6a44a0937e782918835e9b58..5455dfe4c3c77b1da7a5015c88db6a80583173d5 100644 (file)
@@ -2514,7 +2514,7 @@ static void __split_huge_page_tail(struct folio *folio, int tail,
        if (page_is_idle(head))
                set_page_idle(page_tail);
 
-       page_cpupid_xchg_last(page_tail, page_cpupid_last(head));
+       page_cpupid_xchg_last(page_tail, folio_last_cpupid(folio));
 
        /*
         * always add to the tail because some iterators expect new