commit | c60aa176c6de82703f064082b909496fc4fee956 | [log] [tgz] |
---|---|---|
author | Hugh Dickins <[email protected]> | Tue Jan 06 14:39:55 2009 -0800 |
committer | Linus Torvalds <[email protected]> | Tue Jan 06 15:59:06 2009 -0800 |
tree | 2a6e58bda416af2c87f470023041f7049dcf1167 | |
parent | 20137a490f397d9c01fc9fadd83a8d198bda4477 [diff] |
swapfile: swap allocation cycle if nonrot Though attempting to find free clusters (Andrea), swap allocation has always restarted its searches from the beginning of the swap area (sct), to reduce seek times between swap pages, by not scattering them all over the partition. But on a solidstate swap device, seeks are cheap, and block remapping to level the wear may be limited by zones: in that case it's better to cycle around the whole partition. Signed-off-by: Hugh Dickins <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Nick Piggin <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Joern Engel <[email protected]> Cc: James Bottomley <[email protected]> Cc: Donjun Shin <[email protected]> Cc: Tejun Heo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>