[PATCH] swap: show span of swap extents
authorHugh Dickins <hugh@veritas.com>
Sat, 3 Sep 2005 22:54:34 +0000 (15:54 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:05:40 +0000 (00:05 -0700)
commit53092a7402f227151a681b0c92ec8598c5618b1a
treeea482a18567c8b3b1778331ee3c4864e2f4dae6f
parent11d31886dbcb61039ed3789e583d21c6e70960fd
[PATCH] swap: show span of swap extents

The "Adding %dk swap" message shows the number of swap extents, as a guide to
how fragmented the swapfile may be.  But a useful further guide is what total
extent they span across (sometimes scarily large).

And there's no need to keep nr_extents in swap_info: it's unused after the
initial message, so save a little space by keeping it on stack.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/swap.h
mm/swapfile.c