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

From
Matthew Wilcox <willy@infradead.org>
Date
2019-02-07 21:34:05
Also in
linux-mm
Reply to
David Miller, 2019-02-07
On Thu, Feb 07, 2019 at 01:25:19PM -0800, David Miller wrote:
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Date: Thu, 7 Feb 2019 17:20:34 +0200
quoted
Well updating struct page is the final goal, hence the comment. I am mostly
looking for opinions here since we are trying to store dma addresses which are
irrelevant to pages. Having dma_addr_t definitions in mm-related headers is a
bit controversial isn't it ? If we can add that, then yes the code would look
better
I fundamentally disagree.

One of the core operations performed on a page is mapping it so that a device
and use it.

Why have ancillary data structure support for this all over the place, rather
than in the common spot which is the page.

A page really is not just a 'mm' structure, it is a system structure.
+1

The fundamental point of computing is to do I/O.
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