From: Liam R. Howlett Date: Mon, 1 Mar 2021 19:30:00 +0000 (-0500) Subject: arch/powerpc/oprofile/cell/spu_task_sync: Use vma_lookup() instead of find_vma_inters... X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b04d0d6a989a4989cfa989814116218f9a516a49;p=users%2Fjedix%2Flinux-maple.git arch/powerpc/oprofile/cell/spu_task_sync: Use vma_lookup() instead of find_vma_intersection() vma_lookup() is more efficient Signed-off-by: Liam R. Howlett --- diff --git a/arch/powerpc/oprofile/cell/spu_task_sync.c b/arch/powerpc/oprofile/cell/spu_task_sync.c index 47b4d4e9b628d..6756746f3f768 100644 --- a/arch/powerpc/oprofile/cell/spu_task_sync.c +++ b/arch/powerpc/oprofile/cell/spu_task_sync.c @@ -333,7 +333,7 @@ get_exec_dcookie_and_offset(struct spu *spu, unsigned int *offsetp, } mmap_read_lock(mm); - vma = find_vma_intersection(mm, spu_ref, spu_ref + 1); + vma = vma_lookup(mm, spu_ref); if (!vma) goto fail_no_image_cookie;