On 08/22/23 17:28, Matthew Wilcox (Oracle) wrote: > 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. > > Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> > Cc: Sidhartha Kumar <sidhartha.kumar@xxxxxxxxxx> > --- > mm/hugetlb.c | 24 ++++++++++-------------- > 1 file changed, 10 insertions(+), 14 deletions(-) Reviewed-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx> -- Mike Kravetz