]> 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>
Thu, 24 Jun 2021 20:04:21 +0000 (16:04 -0400)
commit315a5fb2ac4d760ad9c7ce2db36ac85852118669
tree74111c8434ad99ab91ee21f1b7c6c3be70a05c3e
parent142863f9ac172d789c555c3cbb4791a4916e7895
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