diff options
author | Hugh Dickins | 2009-12-15 02:58:44 +0100 |
---|---|---|
committer | Linus Torvalds | 2009-12-15 17:53:15 +0100 |
commit | 253d553ba75ab26b3e9e2f70cbf6fbf0813f7e86 (patch) | |
tree | 57c448fad45820c0eb984297fbef120b689381a0 /arch/m68k/include/asm/m68360_pram.h | |
parent | swap_info: miscellaneous minor cleanups (diff) | |
download | kernel-qcow2-linux-253d553ba75ab26b3e9e2f70cbf6fbf0813f7e86.tar.gz kernel-qcow2-linux-253d553ba75ab26b3e9e2f70cbf6fbf0813f7e86.tar.xz kernel-qcow2-linux-253d553ba75ab26b3e9e2f70cbf6fbf0813f7e86.zip |
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 <hugh.dickins@tiscali.co.uk>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/m68k/include/asm/m68360_pram.h')
0 files changed, 0 insertions, 0 deletions