mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
mm/rmap.c: use the pra.mapcount to do the check
We have the pra.mapcount already, and there is no need to call the page_mapped() which may do some complicated computing for compound page. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Huang Shijie <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Cc: Mike Kravetz <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
cfcbfb1382
commit
059d8442ea
1 changed files with 1 additions and 1 deletions
|
|
@ -850,7 +850,7 @@ int page_referenced(struct page *page,
|
|||
};
|
||||
|
||||
*vm_flags = 0;
|
||||
if (!page_mapped(page))
|
||||
if (!pra.mapcount)
|
||||
return 0;
|
||||
|
||||
if (!page_rmapping(page))
|
||||
|
|
|
|||
Loading…
Reference in a new issue