On 05/01/2023 22.46, Matthew Wilcox (Oracle) wrote:
netmem_page() is defined this way to preserve constness. page_netmem() doesn't call compound_head() because netmem users always use the head page; it does include a debugging assert to check that it's true. Signed-off-by: Matthew Wilcox (Oracle)<willy@xxxxxxxxxxxxx> --- include/net/page_pool.h | 59 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+)
Acked-by: Jesper Dangaard Brouer <brouer@xxxxxxxxxx>