Skip to content

Commit

Permalink
rmap: move label `out' to a better place
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Huang Shijie authored and Linus Torvalds committed Dec 15, 2009
1 parent 7b51159 commit 273f047
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 273f047

Please sign in to comment.