1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
Lorenzo Stoakes 54c58a2f5f mm: add vma_desc_size(), vma_desc_pages() helpers
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.

Link: https://lkml.kernel.org/r/74ef338203c9ff08a9ace73a8f1f6116a79112a0.1760959442.git.lorenzo.stoakes@oracle.com
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Pedro Falcato <pfalcato@suse.de>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andreas Larsson <andreas@gaisler.com>
Cc: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Chatre, Reinette <reinette.chatre@intel.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Dave Martin <dave.martin@arm.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Dmitriy Vyukov <dvyukov@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Guo Ren <guoren@kernel.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: James Morse <james.morse@arm.com>
Cc: Jann Horn <jannh@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Kevin Tian <kevin.tian@intel.com>
Cc: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Robin Murohy <robin.murphy@arm.com>
Cc: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: "Uladzislau Rezki (Sony)" <urezki@gmail.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-11-16 17:28:11 -08:00
..
2025-09-24 17:09:47 +02:00
2025-10-01 17:32:51 -07:00
2025-10-02 15:17:01 -07:00
2025-10-03 17:23:18 +02:00
2025-10-06 10:41:03 -07:00
2025-10-02 15:17:01 -07:00
2025-10-06 13:22:21 -07:00
2025-10-04 16:07:08 -07:00
2025-09-05 15:06:03 +02:00
2025-10-10 10:37:13 -07:00
2025-09-24 02:48:05 -07:00
2025-09-29 11:20:29 -07:00
2025-09-30 17:58:11 -07:00
2025-09-29 17:48:27 -07:00
2025-09-23 11:13:22 +02:00
2025-10-03 10:51:44 -07:00
2025-10-06 13:22:21 -07:00
2025-09-13 17:32:44 -07:00
2025-08-29 13:39:53 -07:00
2025-10-02 09:56:23 -07:00
2025-09-29 11:20:29 -07:00
2025-09-18 10:17:09 +02:00
2025-09-23 11:13:22 +02:00
2025-10-18 10:25:43 +02:00
2025-10-04 11:28:45 -07:00
2025-09-13 16:54:50 -07:00
2025-09-29 11:20:29 -07:00
2025-09-17 15:58:29 -04:00
2025-09-30 16:00:29 -07:00
2025-10-03 16:32:36 -07:00
2025-09-23 13:28:20 -04:00
2025-10-06 13:22:21 -07:00
2025-09-19 14:26:16 +02:00
2025-09-29 11:20:29 -07:00
2025-09-25 09:23:47 +02:00
2025-10-01 07:55:42 -05:00
2025-10-03 14:20:40 -07:00
2025-10-03 12:13:12 -05:00
2025-09-13 16:55:07 -07:00
2025-10-03 10:24:14 -07:00
2025-09-29 11:20:29 -07:00
2025-08-24 11:41:11 -06:00
2025-10-01 15:11:00 -07:00
2025-10-07 08:40:15 -07:00
2025-09-30 15:06:33 -07:00
2025-08-28 13:14:50 +02:00
2025-09-19 17:19:45 -07:00
2025-10-01 11:34:12 -07:00
2025-09-29 11:20:29 -07:00
2025-09-09 10:27:01 -06:00
2025-09-29 11:20:29 -07:00
2025-10-01 07:24:55 -04:00