HomeFreeBSD

linuxkpi: Make "free page" code paths closer to Linux

Description

linuxkpi: Make "free page" code paths closer to Linux

There is basically one code path to free pages on Linux. In particular,
free_pages() is used for other pages than those returned by
alloc_pages().

Also on Linux, release_pages() takes either struct page or `struct
folio`. struct folio support will be added in a followup commit.
Regardless, because pages come from several sources,
linux_free_pages() need to accept managed and unmanaged pages.

Reviewed by: bz, markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49813

Details

Provenance
dumbbellAuthored on Apr 13 2025, 11:13 AM
Reviewer
bz
Differential Revision
D49813: linuxkpi: Make "free page" code paths closer to Linux
Parents
rG5a263e8458ad: linuxkpi: Constify `struct page` arg to `linux_page_address()`
Branches
Unknown
Tags
Unknown