]> 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>
Wed, 19 May 2021 20:39:06 +0000 (16:39 -0400)
commit5fb4d70c68d493f1f9e11187e2c4d012abeb245b
tree38cc3c33520716c4d78469646a855e1422a287dd
parent063fbba46f60c54360fe8d4a4a32481a78f3682f
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