From: Hugh Dickins Date: Tue, 15 Dec 2009 01:58:44 +0000 (-0800) Subject: swap_info: SWAP_HAS_CACHE cleanups X-Git-Tag: v2.6.33-rc1~239 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=253d553ba75ab26b3e9e2f70cbf6fbf0813f7e86;p=pandora-kernel.git swap_info: SWAP_HAS_CACHE cleanups Though swap_count() is useful, I'm finding that swap_has_cache() and encode_swapmap() obscure what happens in the swap_map entry, just at those points where I need to understand it. Remove them, and pass more usable "usage" values to scan_swap_map(), swap_entry_free() and __swap_duplicate(), instead of the SWAP_MAP and SWAP_CACHE enum. Signed-off-by: Hugh Dickins Reviewed-by: KAMEZAWA Hiroyuki Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed