diff options
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index c9d8870892b8..f733deb10748 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -151,9 +151,9 @@ enum { | |||
151 | 151 | ||
152 | #define SWAP_CLUSTER_MAX 32 | 152 | #define SWAP_CLUSTER_MAX 32 |
153 | 153 | ||
154 | #define SWAP_MAP_MAX 0x7ffe | 154 | #define SWAP_MAP_MAX 0x7e |
155 | #define SWAP_MAP_BAD 0x7fff | 155 | #define SWAP_MAP_BAD 0x7f |
156 | #define SWAP_HAS_CACHE 0x8000 /* There is a swap cache of entry. */ | 156 | #define SWAP_HAS_CACHE 0x80 /* There is a swap cache of entry. */ |
157 | 157 | ||
158 | /* | 158 | /* |
159 | * The in-memory structure used to track swap areas. | 159 | * The in-memory structure used to track swap areas. |
@@ -167,7 +167,7 @@ struct swap_info_struct { | |||
167 | struct block_device *bdev; | 167 | struct block_device *bdev; |
168 | struct swap_extent first_swap_extent; | 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 char *swap_map; |
171 | unsigned int lowest_bit; | 171 | unsigned int lowest_bit; |
172 | unsigned int highest_bit; | 172 | unsigned int highest_bit; |
173 | unsigned int lowest_alloc; /* while preparing discard cluster */ | 173 | unsigned int lowest_alloc; /* while preparing discard cluster */ |