]> www.infradead.org Git - users/willy/pagecache.git/commit
niu: Create struct niu_page
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 15 Mar 2025 03:59:41 +0000 (23:59 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 17 Mar 2025 19:55:40 +0000 (15:55 -0400)
commit77e80bb33fd627434c2450cb5cc88e5ddfc93ca8
tree36f0d48902da8a6a7c4a8e76acec659a8facfe43
parentf53bac8ddc44f155f63f5c579ce0471feef41e3a
niu: Create struct niu_page

The map_page() call returns a u64, so using page->private or page->index
to store the result from that will truncate it on 32-bit systems.
Additionally, the next pointer is stored in page->mapping and we're
trying to remove references to page->mapping.  So define a
driver-private struct which overlays struct page and lets us store the
64-bit result of map_page.  Gets rid of the niu_next_page() macro;
we can use the much more natural page->next instead.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
drivers/net/ethernet/sun/niu.c
drivers/net/ethernet/sun/niu.h