From: Weijie Yang Date: Tue, 12 Nov 2013 23:07:52 +0000 (-0800) Subject: mm/zswap: avoid unnecessary page scanning X-Git-Tag: v3.13-rc1~106^2~208 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b349acc76b7f65400b85abd09a5379ddd6fa5a97;p=pandora-kernel.git 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 Reviewed-by: Bob Liu Reviewed-by: Minchan Kim Acked-by: Seth Jennings Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed