Re: [PATCH v4 12/14] mm: add shmem_zero_setup_desc()

From: Jason Gunthorpe
Date: Wed Sep 17 2025 - 17:39:08 EST


On Wed, Sep 17, 2025 at 08:11:14PM +0100, Lorenzo Stoakes wrote:
> Add the ability to set up a shared anonymous mapping based on a VMA
> descriptor rather than a VMA.
>
> This is a prerequisite for converting to the char mm driver to use the
> mmap_prepare hook.
>
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
> ---
> include/linux/shmem_fs.h | 3 ++-
> mm/shmem.c | 41 ++++++++++++++++++++++++++++++++--------
> 2 files changed, 35 insertions(+), 9 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

Jason