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

Jason Gunthorpe
2025-09-17T21:38:48Z

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@oracle.com>
> ---
> include/linux/shmem_fs.h | 3 ++-
> mm/shmem.c | 41 ++++++++++++++++++++++++++++++++--------
> 2 files changed, 35 insertions(+), 9 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason