aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHugh Dickins <hugh.dickins@tiscali.co.uk>2009-12-14 20:58:42 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 11:53:15 -0500
commit9625a5f289f7c3c100b59c317e2bcc3c7e2e51fb (patch)
tree88fecfbed0eaf627e8e08a9e196d1d2849737f0a /include
parentefa90a981bbc891efad96db2a75b5487e00852ca (diff)
swap_info: include first_swap_extent
Make better use of the space by folding first swap_extent into its swap_info_struct, instead of just the list_head: swap partitions need only that one, and for others it's used as a circular list anyway. [jirislaby@gmail.com: fix crash on double swapon] Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Rik van Riel <riel@redhat.com> Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/swap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index f1c248796fb8..109dfe794237 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -165,7 +165,7 @@ struct swap_info_struct {
165 signed char next; /* next type on the swap list */ 165 signed char next; /* next type on the swap list */
166 struct file *swap_file; 166 struct file *swap_file;
167 struct block_device *bdev; 167 struct block_device *bdev;
168 struct list_head extent_list; 168 struct swap_extent first_swap_extent;
169 struct swap_extent *curr_swap_extent; 169 struct swap_extent *curr_swap_extent;
170 unsigned short *swap_map; 170 unsigned short *swap_map;
171 unsigned int lowest_bit; 171 unsigned int lowest_bit;