From: Sasha Levin Date: Sun, 10 Jun 2012 10:51:02 +0000 (+0200) Subject: mm: frontswap: split out __frontswap_unuse_pages X-Git-Tag: v3.6-rc1~122^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f116695a500cdd84cbeac68bc373e98ae729c24b;p=pandora-kernel.git mm: frontswap: split out __frontswap_unuse_pages An attempt at making frontswap_shrink shorter and more readable. This patch splits out walking through the swap list to find an entry with enough pages to unuse. Also, assert that the internal __frontswap_unuse_pages is called under swap lock, since that part of code was previously directly happen inside the lock. Signed-off-by: Sasha Levin Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed