aboutsummaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
authorHuang Shijie <shijie8@gmail.com>2009-12-14 20:58:51 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 11:53:16 -0500
commit273f047e36d83179573dc7e3a8af6aceaa8c599e (patch)
tree0202c5e27f163ceb7b33dc6bd7cddcb87a1e6a46 /mm/rmap.c
parent7b51159405272157123ea8e0ef9b63c731dbfb48 (diff)
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 <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>
Diffstat (limited to 'mm/rmap.c')
-rw-r--r--mm/rmap.c3
1 files changed, 2 insertions, 1 deletions
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,
388out_unmap: 388out_unmap:
389 (*mapcount)--; 389 (*mapcount)--;
390 pte_unmap_unlock(pte, ptl); 390 pte_unmap_unlock(pte, ptl);
391out: 391
392 if (referenced) 392 if (referenced)
393 *vm_flags |= vma->vm_flags; 393 *vm_flags |= vma->vm_flags;
394out:
394 return referenced; 395 return referenced;
395} 396}
396 397