On Tue, Aug 30, 2022 at 08:36:02PM +0800, Miaohe Lin wrote: > If vma->vm_mm != t->mm, there's no need to call page_mapped_in_vma() as > add_to_kill() won't be called in this case. Move up the mm check to avoid > possible unneeded calling to page_mapped_in_vma(). > > Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx> Acked-by: Naoya Horiguchi <naoya.horiguchi@xxxxxxx>