Re: [RFC, PATCH] net: page_pool: Don't use page->private to store dma_addr_t

From
Tariq Toukan <hidden>
Date
2019-02-11 15:38:27
Also in
linux-mm
Reply to
Matthew Wilcox, 2019-02-11

On 2/11/2019 2:12 PM, Matthew Wilcox wrote:
On Mon, Feb 11, 2019 at 08:53:19AM +0000, Tariq Toukan wrote:
quoted
It's great to use the struct page to store its dma mapping, but I am
worried about extensibility.
page_pool is evolving, and it would need several more per-page fields.
One of them would be pageref_bias, a planned optimization to reduce the
number of the costly atomic pageref operations (and replace existing
code in several drivers).
There's space for five words (20 or 40 bytes on 32/64 bit).
OK so this is good for now, and for the near future.
Fine by me.

Regards,
Tariq
Thread (19 messages) 19 messages, 7 authors, last reply 2019-02-13
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