aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/swap.h
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2005-09-03 18:54:34 -0400
committerLinus Torvalds <torvalds@evo.osdl.org>2005-09-05 03:05:40 -0400
commit53092a7402f227151a681b0c92ec8598c5618b1a (patch)
treeea482a18567c8b3b1778331ee3c4864e2f4dae6f /include/linux/swap.h
parent11d31886dbcb61039ed3789e583d21c6e70960fd (diff)
[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>
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r--include/linux/swap.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index 38f288475e67..f2b16ac0b539 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -123,7 +123,6 @@ struct swap_info_struct {
123 struct file *swap_file; 123 struct file *swap_file;
124 struct block_device *bdev; 124 struct block_device *bdev;
125 struct list_head extent_list; 125 struct list_head extent_list;
126 int nr_extents;
127 struct swap_extent *curr_swap_extent; 126 struct swap_extent *curr_swap_extent;
128 unsigned old_block_size; 127 unsigned old_block_size;
129 unsigned short * swap_map; 128 unsigned short * swap_map;