diff options
author | Weijie Yang <weijie.yang@samsung.com> | 2013-11-12 15:07:52 -0800 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-03-20 17:44:41 +0900 |
commit | 29bf117c4a5e128c211a7c8e3504582bb33809a9 (patch) | |
tree | f707ecccfa5f839680361ad94d90fce06ea34e10 /mm/fremap.c | |
parent | cb59860ea517e83f80827ce19e725fe955a29c64 (diff) | |
download | linux-3.10-29bf117c4a5e128c211a7c8e3504582bb33809a9.tar.gz linux-3.10-29bf117c4a5e128c211a7c8e3504582bb33809a9.tar.bz2 linux-3.10-29bf117c4a5e128c211a7c8e3504582bb33809a9.zip |
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.
Change-Id: If1ed52e3161c332d9f1f6fdd8851e97b5d3b4271
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/fremap.c')
0 files changed, 0 insertions, 0 deletions