]> 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>
Fri, 29 Oct 2021 13:08:39 +0000 (09:08 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 15 Dec 2021 18:38:44 +0000 (13:38 -0500)
commita45a86eb0bd7981af0354c09cc3cff917089fe8d
treec6761c0ad5ebc4b40936f5c3749ea167e779d3d9
parent4ff766bdc0c13f810e2e81b7cecb5755b402a002
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>
mm/mmap.c