]> www.infradead.org Git - users/willy/linux.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)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 20 Oct 2021 20:00:32 +0000 (16:00 -0400)
commit74ba35e3736e9086c9f8b8b7d7e8a9b65e46f882
tree2d5d13234d5f2b48a64e3a4d8c300bb44bc4cece
parent72346ccfed334160a40dbc7d106019c741d4a0b4
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