path: root/mm/ksm.c
diff options
authorMichal Hocko <>2018-12-28 00:38:36 -0800
committerLinus Torvalds <>2018-12-28 12:11:51 -0800
commite0975b2aae0e669f995f7d5f11db25c3080ae11c (patch)
tree85ef72a9df87997d6b35f298a0cb5230da7f1552 /mm/ksm.c
parentbb8965bd82fd4ed433a888f1383016ab3fa0d7de (diff)
mm, fault_around: do not take a reference to a locked page
filemap_map_pages takes a speculative reference to each page in the range before it tries to lock that page. While this is correct it also can influence page migration which will bail out when seeing an elevated reference count. The faultaround code would bail on seeing a locked page so we can pro-actively check the PageLocked bit before page_cache_get_speculative and prevent from pointless reference count churn. Link: Signed-off-by: Michal Hocko <> Suggested-by: Jan Kara <> Acked-by: Kirill A. Shutemov <> Reviewed-by: David Hildenbrand <> Acked-by: Hugh Dickins <> Reviewed-by: William Kucharski <> Cc: Oscar Salvador <> Cc: Pavel Tatashin <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'mm/ksm.c')
0 files changed, 0 insertions, 0 deletions