mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Acked-by: Wu Fengguang <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7b51159405
commit
273f047e36
1 changed files with 2 additions and 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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue