]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/privcmd: Optimized privcmd_ioctl_mmap() by using vma_lookup()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 8 Apr 2021 20:06:36 +0000 (16:06 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 22 Oct 2021 00:27:27 +0000 (20:27 -0400)
commit3ced39654356ab92ef1e326288e70dcd288372a2
tree9bfb661f27f9c6b104acf7ccae04ab8a9b2aed05
parent20f8655113cb55cfbbdada7150c7c7bc52173064
xen/privcmd: Optimized privcmd_ioctl_mmap() by using vma_lookup()

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