[PATCH v3 03/13] mm: add vma_desc_size(), vma_desc_pages() helpers

Jason Gunthorpe jgg at nvidia.com
Tue Sep 16 09:46:37 PDT 2025


On Tue, Sep 16, 2025 at 03:11:49PM +0100, Lorenzo Stoakes wrote:
> It's useful to be able to determine the size of a VMA descriptor range
> used on f_op->mmap_prepare, expressed both in bytes and pages, so add
> helpers for both and update code that could make use of it to do so.
> 
> Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes at oracle.com>
> Reviewed-by: Jan Kara <jack at suse.cz>
> Acked-by: David Hildenbrand <david at redhat.com>
> ---
>  fs/ntfs3/file.c    |  2 +-
>  include/linux/mm.h | 10 ++++++++++
>  mm/secretmem.c     |  2 +-
>  3 files changed, 12 insertions(+), 2 deletions(-)

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

Jason



More information about the kexec mailing list