]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: Use vma_lookup() in privcmd_ioctl_mmap()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 8 Apr 2021 20:06:36 +0000 (16:06 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 30 Oct 2021 03:37:29 +0000 (23:37 -0400)
commitf08546e04e9216e9e5b438d13418e15a2e93e767
tree9574c037f0477e1e2f07592deb308a52a447c6da
parent2876d6e06ecbcf6cc096d514f78bdd0392b355d2
xen: Use vma_lookup() in privcmd_ioctl_mmap()

vma_lookup() walks the VMA tree for a specific value, find_vma() will
search the tree after walking to a specific value.  It is more efficient
to only walk to the requested value as this case requires the address to
equal the vm_start.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
drivers/xen/privcmd.c