[PATCH] rmap: swap_unplug page
authorAndrew Morton <akpm@osdl.org>
Sun, 18 Apr 2004 03:55:06 +0000 (20:55 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 18 Apr 2004 03:55:06 +0000 (20:55 -0700)
commit3df9aaf34e68c9256b08d02ca65ced12bf9e8d9e
treef05bfe114893f8679f878bbb747c9c0077c3911c
parentc4d92e6b147b133848e8d89a734efdd2c3302d14
[PATCH] rmap: swap_unplug page

From: Hugh Dickins <hugh@veritas.com>

Good example of "swapper_space considered harmful": swap_unplug_io_fn was
originally designed for calling via swapper_space.backing_dev_info; but
that way it loses track of which device is to be unplugged, so had to
unplug all swap devices.  But now sync_page tests SwapCache anyway, can
call swap_unplug_io_fn with page, which leads direct to the device.

Reverted -mc4's CONFIG_SWAP=n fix, just add another NOTHING for it.
Reverted -mc3's editorial adjustments to swap_backing_dev_info and
swapper_space initializations: they document the few fields which are
actually used now, as comment above them says (sound of slapped wrist).
include/linux/swap.h
mm/filemap.c
mm/nommu.c
mm/swap_state.c
mm/swapfile.c