From: Hugh Dickins Date: Tue, 5 Feb 2008 06:29:23 +0000 (-0800) Subject: mm: don't waste swap on locked pages X-Git-Tag: v2.6.25-rc1~933 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a9bbdcd29adbb786c53eba1dfc3c2d256020d6b;p=pandora-kernel.git 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 Tested-by: KAMEZAWA Hiroyuki Cc: Ethan Solomita Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed