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.

Signed-off-by: Huang Shijie <>
Acked-by: Kirill A. Shutemov <>
Cc: Mike Kravetz <>
Cc: Rik van Riel <>
Cc: Joonsoo Kim <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
1 file changed