aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/sparse.c
diff options
context:
space:
mode:
authorZhangPeng <zhangpeng362@huawei.com>2023-06-06 14:20:11 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-06-19 16:19:03 -0700
commitad27ce206af731f6854b3d8a1760c573b217e363 (patch)
tree72e447b02e5e32c6f46bad3b83d8a94cc45f5366 /mm/sparse.c
parentselftests: error out if kernel header files are not yet built (diff)
downloadwireguard-linux-ad27ce206af731f6854b3d8a1760c573b217e363.tar.xz
wireguard-linux-ad27ce206af731f6854b3d8a1760c573b217e363.zip
mm/hugetlb: use a folio in copy_hugetlb_page_range()
Patch series "Convert several functions in hugetlb.c to use a folio", v2. This patch series converts three functions in hugetlb.c to use a folio, which can remove several implicit calls to compound_head(). This patch (of 3): We can replace five implict calls to compound_head() with one by using pte_folio. The page we get back is always a head page, so we just convert ptepage to pte_folio. Link: https://lkml.kernel.org/r/20230606062013.2947002-1-zhangpeng362@huawei.com Link: https://lkml.kernel.org/r/20230606062013.2947002-2-zhangpeng362@huawei.com Signed-off-by: ZhangPeng <zhangpeng362@huawei.com> Suggested-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Reviewed-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Mike Kravetz <mike.kravetz@oracle.com> Cc: Nanyong Sun <sunnanyong@huawei.com> Cc: Vishal Moola (Oracle) <vishal.moola@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions