]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/zswap: avoid unnecessary page scanning
authorWeijie Yang <weijie.yang@samsung.com>
Tue, 5 Nov 2013 05:55:46 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:46 +0000 (16:55 +1100)
commitf67869fc7e8f4c5089bb96c037693fd33a29d12a
treea618320df59fe36edd9169ef94d0b30de85776fd
parenta5bd69cf677bb7ebc6444e4517fa13b0dd70ce08
mm/zswap: avoid unnecessary page scanning

Add SetPageReclaim() before __swap_writepage() so that page can be moved
to the tail of the inactive list, which can avoid unnecessary page
scanning as this page was reclaimed by swap subsystem before.

Signed-off-by: Weijie Yang <weijie.yang@samsung.com>
Reviewed-by: Bob Liu <bob.liu@oracle.com>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Acked-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zswap.c