Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 273f047e authored by Huang Shijie's avatar Huang Shijie Committed by Linus Torvalds
Browse files

rmap: move label `out' to a better place



When the code jumps to the `out', `referenced' is still zero.  So there is
no need to check it.

Signed-off-by: default avatarHuang Shijie <shijie8@gmail.com>
Acked-by: default avatarWu Fengguang <fengguang.wu@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7b511594
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -388,9 +388,10 @@ static int page_referenced_one(struct page *page,
out_unmap:
	(*mapcount)--;
	pte_unmap_unlock(pte, ptl);
out:

	if (referenced)
		*vm_flags |= vma->vm_flags;
out:
	return referenced;
}