]> 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)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 16 Dec 2021 03:01:33 +0000 (22:01 -0500)
commitc989378f73baab55eb06fce7893bd9ab04ff1a5e
treedddfd5c1df67628a14894fb4ed6a970d9295df0c
parente7cfa6f27eb6d6f93ddaf3c745007b2203e39f33
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