Re: [RFC 19/19] mm, netmem: remove the page pool members in struct page

From
Matthew Wilcox <willy@infradead.org>
Date
2025-05-12 14:43:10
Also in
linux-mm, lkml
Reply to
Byungchul Park, 2025-05-12
On Mon, May 12, 2025 at 09:51:03PM +0900, Byungchul Park wrote:
On Fri, May 09, 2025 at 07:02:30PM +0100, Matthew Wilcox wrote:
quoted
quoted
+		struct __netmem_desc place_holder_1; /* for page pool */
 		struct {	/* Tail pages of compound page */
 			unsigned long compound_head;	/* Bit zero is set */
 		};
The include and the place holder aren't needed.
Or netmem_desc overlaying struct page might be conflict with other
fields of sturct page e.g. _mapcount, _refcount and the like, once the
layout of struct page *extremly changes* in the future before
netmem_desc has its own instance.
That's not how it'll happen.  When the layout of struct page changes,
it'll shrink substantially (cut in half).  That means that dynamically
allocating netmem_desc must happen first (along with slab, folio, etc,
etc).
Thread (53 messages) 53 messages, 6 authors, last reply 2025-05-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help