Re: [PATCH V2] mm/memremap: fix spurious large folio warning for FS-DAX

From: dan.j.williams

Date: Fri Dec 19 2025 - 15:09:35 EST


John Groves wrote:
[..]
> The fix is to exempt MEMORY_DEVICE_FS_DAX from the large folio warning,
> allowing FS-DAX to continue using PMD mappings without triggering false
> warnings.

As you note, this patch no longer exempts MEMORY_DEVICE_FS_DAX explicitly, it just
removes the bogus warning, so maybe Andrew can adjust this note on
applying?

> Fixes: d245f9b4ab80 ("mm/zone_device: support large zone device private folios")
> Signed-off-by: John Groves <john@xxxxxxxxxx>
> ---
>
> Change since V1: Deleted the warning altogether, rather than exempting
> fs-dax.
>
> === How to reproduce ===
>
> A reproducer is available at:
>
> git clone https://github.com/jagalactic/dax-pmd-test.git
> cd xfs-dax-test
> make
> sudo make test

Thanks John, outside of the fixup above, this looks good to me.

Reviewed-by: Dan Williams <dan.j.williams@xxxxxxxxx>

Now, my first thoughts when seeing this were:

"ooh, I want that test in the regression suite"

...then:

"wait, that sounds exactly like the existing dax.sh test [1]"

[1]: https://github.com/pmem/ndctl/blob/main/test/dax.sh

Alison reports that indeed that existing test triggers the problem which
indicates some process problems to solve.

- Folks touching mm/memremap.c (and anything dax related) do not know
about / run the regression tests.

- The bespoke nature of the dax testing environment needs some work to
get it into a kselftest amenable flow, or otherwise need more
automation to run those tests automatically upon seeing those files
touched in linux-next so folks see breakage like this earlier.