Commit 18b60545 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 b9f0f80c
...@@ -388,9 +388,10 @@ static int page_referenced_one(struct page *page, ...@@ -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;
} }
......
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