From: Huang Shijie Date: Tue, 15 Dec 2009 01:58:51 +0000 (-0800) Subject: rmap: move label `out' to a better place X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=273f047e36d83179573dc7e3a8af6aceaa8c599e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Huang Shijie Acked-by: Wu Fengguang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/rmap.c b/mm/rmap.c index e032d96fd64e..1a0ee6e634c2 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -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; }