]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/hugetlb: use folio->lru int demote_free_hugetlb_folios()
authorDavid Hildenbrand <david@redhat.com>
Mon, 13 Jan 2025 13:16:11 +0000 (14:16 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 26 Jan 2025 04:22:42 +0000 (20:22 -0800)
commit89a41a0263293856678189981e5407375261c4ff
tree222e5da4746be52302a61b93746643af7734bf6f
parent3f982b9b18c23900da10956b91036a3f6fe3f5bc
mm/hugetlb: use folio->lru int demote_free_hugetlb_folios()

We are demoting hugetlb folios to smaller hugetlb folios; let's avoid
messing with pages where avoidable and handle it more similar to
__split_huge_page_tail().

Link: https://lkml.kernel.org/r/20250113131611.2554758-7-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c