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>
This commit is contained in:
committed by
Linus Torvalds
parent
efa90a981b
commit
9625a5f289
@ -165,7 +165,7 @@ struct swap_info_struct {
|
||||
signed char next; /* next type on the swap list */
|
||||
struct file *swap_file;
|
||||
struct block_device *bdev;
|
||||
struct list_head extent_list;
|
||||
struct swap_extent first_swap_extent;
|
||||
struct swap_extent *curr_swap_extent;
|
||||
unsigned short *swap_map;
|
||||
unsigned int lowest_bit;
|
||||
|
Reference in New Issue
Block a user