On 5/30/26 9:50 AM, John Groves wrote: > From: John Groves <[email protected]> > > Clear pgmap->vmemmap_shift for static DAX devices. When rebinding a static > device from device_dax (which may set vmemmap_shift based on alignment) to > fsdev_dax, the stale vmemmap_shift persists on the shared pgmap. Explicitly > zero it before devm_memremap_pages() so the vmemmap is built for order-0 > folios as fsdev requires. > > Fixes: d5406bd458b0a ("dax: add fsdev.c driver for fs-dax on character dax") > Signed-off-by: John Groves <[email protected]> Reviewed-by: Dave Jiang <[email protected]> > --- > drivers/dax/fsdev.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/dax/fsdev.c b/drivers/dax/fsdev.c > index f315533b299e9..dbd722ed7ab05 100644 > --- a/drivers/dax/fsdev.c > +++ b/drivers/dax/fsdev.c > @@ -237,6 +237,7 @@ static int fsdev_dax_probe(struct dev_dax *dev_dax) > } > > pgmap = dev_dax->pgmap; > + pgmap->vmemmap_shift = 0; > } else { > size_t pgmap_size; >
- Re: [PATCH V3 2/9] dax/fsdev: fix multi-range offset... Alison Schofield
- [PATCH V3 1/9] dax: fix misleading comment about share/in... John Groves
- Re: [PATCH V3 1/9] dax: fix misleading comment about... Dave Jiang
- Re: [PATCH V3 1/9] dax: fix misleading comment about... Alison Schofield
- [PATCH V3 7/9] dax: fix holder_ops race in fs_put_dax() John Groves
- [PATCH V3 5/9] dax/fsdev: use __va(phys) for kaddr in dir... John Groves
- Re: [PATCH V3 5/9] dax/fsdev: use __va(phys) for kad... Dave Jiang
- Re: [PATCH V3 5/9] dax/fsdev: use __va(phys) for kad... Alison Schofield
- [PATCH V3 3/9] dax/fsdev: clear vmemmap_shift when bindin... John Groves
- Re: [PATCH V3 3/9] dax/fsdev: clear vmemmap_shift wh... Dave Jiang
- Re: [PATCH V3 3/9] dax/fsdev: clear vmemmap_shift wh... Alison Schofield
- [PATCH V3 8/9] dax: replace exported dax_dev_get() with n... John Groves
- Re: [PATCH V3 8/9] dax: replace exported dax_dev_get... Dave Jiang
- Re: [PATCH V3 8/9] dax: replace exported dax_dev_get... Alison Schofield
- [PATCH V3 4/9] dax/fsdev: clear dev_dax->pgmap on prob... John Groves
- Re: [PATCH V3 4/9] dax/fsdev: clear dev_dax->pgma... Dave Jiang
- Re: [PATCH V3 4/9] dax/fsdev: clear dev_dax->pgma... Alison Schofield
- [PATCH V3 6/9] dax/fsdev: fail probe on invalid pgmap off... John Groves
- Re: [PATCH V3 6/9] dax/fsdev: fail probe on invalid ... Alison Schofield
- [PATCH V3 9/9] dax: fsdev.c minor formatting cleanup John Groves

