]> git.baikalelectronics.ru Git - kernel.git/commitdiff
rmap: move label `out' to a better place
authorHuang Shijie <shijie8@gmail.com>
Tue, 15 Dec 2009 01:58:51 +0000 (17:58 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2009 16:53:16 +0000 (08:53 -0800)
When the code jumps to the `out', `referenced' is still zero.  So there is
no need to check it.

Signed-off-by: Huang Shijie <shijie8@gmail.com>
Acked-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/rmap.c

index e032d96fd64e7056def2c761f94db1ff16b2ab06..1a0ee6e634c28e04c6d9b1be5369c72cbb762417 100644 (file)
--- 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;
 }