rmap : move the `out` to a more proper place
Subsystems (2)
PATCH 1/1 rmap : move the `out` to a more proper place
When the code jumps to the `out' ,the referenced is still zero. So there is no need to check it.
Signed-off-by Huang Shijie <[email protected]>
--- mm/rmap.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
mm/rmap.c +2 -1
@@ -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; }
Signature · 7 lines
1.6.0.6 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 4 lines · Huang Shijie
When the code jumps to the `out' ,the 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]>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>