Re: [PATCH v4 14/25] rmap: Add support for PUD sized mappings to rmap

2024-12-20 Thread David Hildenbrand
return -EBUSY; diff --git a/mm/rmap.c b/mm/rmap.c index c6c4d4e..39d0439 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -1203,6 +1203,11 @@ static __always_inline unsigned int __folio_add_rmap(struct folio *folio, } atomic_inc(&folio->_la

Re: [PATCH v4 14/25] rmap: Add support for PUD sized mappings to rmap

2024-12-18 Thread Alistair Popple
On Tue, Dec 17, 2024 at 11:27:13PM +0100, David Hildenbrand wrote: > On 17.12.24 06:12, Alistair Popple wrote: > > The rmap doesn't currently support adding a PUD mapping of a > > folio. This patch adds support for entire PUD mappings of folios, > > primarily to allow for more standard refcounting

Re: [PATCH v4 14/25] rmap: Add support for PUD sized mappings to rmap

2024-12-17 Thread David Hildenbrand
On 17.12.24 06:12, Alistair Popple wrote: The rmap doesn't currently support adding a PUD mapping of a folio. This patch adds support for entire PUD mappings of folios, primarily to allow for more standard refcounting of device DAX folios. Currently DAX is the only user of this and it doesn't req

[PATCH v4 14/25] rmap: Add support for PUD sized mappings to rmap

2024-12-16 Thread Alistair Popple
The rmap doesn't currently support adding a PUD mapping of a folio. This patch adds support for entire PUD mappings of folios, primarily to allow for more standard refcounting of device DAX folios. Currently DAX is the only user of this and it doesn't require support for partially mapped PUD-sized