Commit 37e0f374 authored by Huang Shijie's avatar Huang Shijie Committed by james toy

When the code jumps to the `out', `referenced' is still zero. So there is

no need to check it.
Signed-off-by: default avatarHuang Shijie <shijie8@gmail.com>
Acked-by: default avatarWu Fengguang <fengguang.wu@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent bb41356b
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment