]> Git Repo - linux.git/commit - mm/rmap.c
mm: don't waste swap on locked pages
authorHugh Dickins <[email protected]>
Tue, 5 Feb 2008 06:29:23 +0000 (22:29 -0800)
committerLinus Torvalds <[email protected]>
Tue, 5 Feb 2008 17:44:18 +0000 (09:44 -0800)
commit5a9bbdcd29adbb786c53eba1dfc3c2d256020d6b
tree44fbcff2ad653d7a328bab3144d63da9aaea6f7a
parent9eccf2a816ed0aad82b577de6a40cd098ad41944
mm: don't waste swap on locked pages

try_to_unmap always fails on a page found in a VM_LOCKED vma (unless
migrating), and recycles it back to the active list.  But if it's an
anonymous page, we've already allocated swap to it: just wasting swap.
Spot locked pages in page_referenced_one and treat them as referenced.

Signed-off-by: Hugh Dickins <[email protected]>
Tested-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Ethan Solomita <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/rmap.c
This page took 0.054219 seconds and 4 git commands to generate.