summaryrefslogtreecommitdiffstats
path: root/mm/mlock.c
diff options
context:
space:
mode:
authorMinchan Kim2017-05-03 23:54:07 +0200
committerLinus Torvalds2017-05-04 00:52:10 +0200
commit22ffb33f4620b502799877d4186502bfe20621ea (patch)
tree6eda10042e0e063ee3466aea6faf5969c2727eda /mm/mlock.c
parentmm: remove SWAP_DIRTY in ttu (diff)
downloadkernel-qcow2-linux-22ffb33f4620b502799877d4186502bfe20621ea.tar.gz
kernel-qcow2-linux-22ffb33f4620b502799877d4186502bfe20621ea.tar.xz
kernel-qcow2-linux-22ffb33f4620b502799877d4186502bfe20621ea.zip
mm: remove SWAP_MLOCK check for SWAP_SUCCESS in ttu
If the page is mapped and rescue in try_to_unmap_one, the page_mapcount() of a page cannot be zero, so the page_mapcount check in try_to_unmap is enough to return SWAP_SUCCESS. IOW, SWAP_MLOCK check is redundant so remove it. Link: http://lkml.kernel.org/r/1489555493-14659-4-git-send-email-minchan@kernel.org Signed-off-by: Minchan Kim <minchan@kernel.org> Cc: Anshuman Khandual <khandual@linux.vnet.ibm.com> Cc: Hillf Danton <hillf.zj@alibaba-inc.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mlock.c')
0 files changed, 0 insertions, 0 deletions