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>
This commit is contained in:
committed by
Linus Torvalds
parent
7b51159405
commit
273f047e36
@@ -388,9 +388,10 @@ static int page_referenced_one(struct page *page,
|
|||||||
out_unmap:
|
out_unmap:
|
||||||
(*mapcount)--;
|
(*mapcount)--;
|
||||||
pte_unmap_unlock(pte, ptl);
|
pte_unmap_unlock(pte, ptl);
|
||||||
out:
|
|
||||||
if (referenced)
|
if (referenced)
|
||||||
*vm_flags |= vma->vm_flags;
|
*vm_flags |= vma->vm_flags;
|
||||||
|
out:
|
||||||
return referenced;
|
return referenced;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user