Re: [PATCH v7 19/20] fs/dax: Properly refcount fs dax pages

2025-02-10 Thread David Hildenbrand
-static inline unsigned long dax_page_share_put(struct page *page) +static inline unsigned long dax_folio_put(struct folio *folio) { - WARN_ON_ONCE(!page->share); - return --page->share; + unsigned long ref; + + if (!dax_folio_is_shared(folio)) + ref =

Re: [PATCH v7 19/20] fs/dax: Properly refcount fs dax pages

2025-02-06 Thread Guenter Roeck
On Wed, Feb 05, 2025 at 09:48:16AM +1100, Alistair Popple wrote: > Currently fs dax pages are considered free when the refcount drops to > one and their refcounts are not increased when mapped via PTEs or > decreased when unmapped. This requires special logic in mm paths to > detect that these page