mm: huge_memory: convert madvise_free_huge_pmd to use a folio
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 7 Dec 2022 02:34:30 +0000 (10:34 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:42 +0000 (17:12 -0800)
commitfc986a38b670d9b8f6af0596e973976018314a59
tree4b5699156e3381f574d0a5317f72c9cc807c0369
parentcb6c33d4dc09a8fddda1867708956c27615775f4
mm: huge_memory: convert madvise_free_huge_pmd to use a folio

Using folios instead of pages removes several calls to compound_head(),

Link: https://lkml.kernel.org/r/20221207023431.151008-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c