diff options
author | Huang Shijie <shijie8@gmail.com> | 2009-12-14 17:58:51 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 08:53:16 -0800 |
commit | 273f047e36d83179573dc7e3a8af6aceaa8c599e (patch) | |
tree | 0202c5e27f163ceb7b33dc6bd7cddcb87a1e6a46 /mm/rmap.c | |
parent | 7b51159405272157123ea8e0ef9b63c731dbfb48 (diff) | |
download | op-kernel-dev-273f047e36d83179573dc7e3a8af6aceaa8c599e.zip op-kernel-dev-273f047e36d83179573dc7e3a8af6aceaa8c599e.tar.gz |
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, out_unmap: (*mapcount)--; pte_unmap_unlock(pte, ptl); -out: + if (referenced) *vm_flags |= vma->vm_flags; +out: return referenced; } |