]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mmap: use the VMA iterator in count_vma_pages_range()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 20 Jul 2022 02:17:46 +0000 (02:17 +0000)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 6 Sep 2022 19:44:21 +0000 (15:44 -0400)
commite6fe490e98625a75607276e1ab6ec93f3203dc66
tree81b05d8084b21fc7efc94c40c0d4ab7b48616320
parentfb907f486552fc69a93b28e377dbd61987dc3b0b
mmap: use the VMA iterator in count_vma_pages_range()

This simplifies the implementation and is faster than using the linked
list.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
mm/mmap.c