diff options
author | 2023-08-24 15:13:24 +0100 | |
---|---|---|
committer | 2023-10-04 10:32:31 -0700 | |
commit | 04bbfd844b99c7c89a344236d3758e7a2d41572f (patch) | |
tree | c1d60e3886d8d8c1520ad511801dd131adce5ad9 /mm/page-writeback.c | |
parent | hugetlb: use a folio in free_hpage_workfn() (diff) | |
download | wireguard-linux-04bbfd844b99c7c89a344236d3758e7a2d41572f.tar.xz wireguard-linux-04bbfd844b99c7c89a344236d3758e7a2d41572f.zip |
hugetlb: remove a few calls to page_folio()
Anything found on a linked list threaded through ->lru is guaranteed to be
a folio as the compound_head found in a tail page overlaps the ->lru
member of struct page. So we can pull folios directly off these lists no
matter whether pages or folios were added to the list.
Link: https://lkml.kernel.org/r/20230824141325.2704553-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page-writeback.c')
0 files changed, 0 insertions, 0 deletions