diff options
author | Huang Shijie <shijie8@gmail.com> | 2009-12-14 20:58:51 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 11:53:16 -0500 |
commit | 273f047e36d83179573dc7e3a8af6aceaa8c599e (patch) | |
tree | 0202c5e27f163ceb7b33dc6bd7cddcb87a1e6a46 /mm/rmap.c | |
parent | 7b51159405272157123ea8e0ef9b63c731dbfb48 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -388,9 +388,10 @@ static int page_referenced_one(struct page *page, | |||
388 | out_unmap: | 388 | out_unmap: |
389 | (*mapcount)--; | 389 | (*mapcount)--; |
390 | pte_unmap_unlock(pte, ptl); | 390 | pte_unmap_unlock(pte, ptl); |
391 | out: | 391 | |
392 | if (referenced) | 392 | if (referenced) |
393 | *vm_flags |= vma->vm_flags; | 393 | *vm_flags |= vma->vm_flags; |
394 | out: | ||
394 | return referenced; | 395 | return referenced; |
395 | } | 396 | } |
396 | 397 | ||