.. | .. |
---|
11 | 11 | #define _LINUX_DM_EXCEPTION_STORE |
---|
12 | 12 | |
---|
13 | 13 | #include <linux/blkdev.h> |
---|
| 14 | +#include <linux/list_bl.h> |
---|
14 | 15 | #include <linux/device-mapper.h> |
---|
15 | 16 | |
---|
16 | 17 | /* |
---|
.. | .. |
---|
27 | 28 | * chunk within the device. |
---|
28 | 29 | */ |
---|
29 | 30 | struct dm_exception { |
---|
30 | | - struct list_head hash_list; |
---|
| 31 | + struct hlist_bl_node hash_list; |
---|
31 | 32 | |
---|
32 | 33 | chunk_t old_chunk; |
---|
33 | 34 | chunk_t new_chunk; |
---|
.. | .. |
---|
135 | 136 | /* |
---|
136 | 137 | * Funtions to manipulate consecutive chunks |
---|
137 | 138 | */ |
---|
138 | | -# if defined(CONFIG_LBDAF) || (BITS_PER_LONG == 64) |
---|
139 | | -# define DM_CHUNK_CONSECUTIVE_BITS 8 |
---|
140 | | -# define DM_CHUNK_NUMBER_BITS 56 |
---|
| 139 | +#define DM_CHUNK_CONSECUTIVE_BITS 8 |
---|
| 140 | +#define DM_CHUNK_NUMBER_BITS 56 |
---|
141 | 141 | |
---|
142 | 142 | static inline chunk_t dm_chunk_number(chunk_t chunk) |
---|
143 | 143 | { |
---|
.. | .. |
---|
162 | 162 | |
---|
163 | 163 | e->new_chunk -= (1ULL << DM_CHUNK_NUMBER_BITS); |
---|
164 | 164 | } |
---|
165 | | - |
---|
166 | | -# else |
---|
167 | | -# define DM_CHUNK_CONSECUTIVE_BITS 0 |
---|
168 | | - |
---|
169 | | -static inline chunk_t dm_chunk_number(chunk_t chunk) |
---|
170 | | -{ |
---|
171 | | - return chunk; |
---|
172 | | -} |
---|
173 | | - |
---|
174 | | -static inline unsigned dm_consecutive_chunk_count(struct dm_exception *e) |
---|
175 | | -{ |
---|
176 | | - return 0; |
---|
177 | | -} |
---|
178 | | - |
---|
179 | | -static inline void dm_consecutive_chunk_count_inc(struct dm_exception *e) |
---|
180 | | -{ |
---|
181 | | -} |
---|
182 | | - |
---|
183 | | -static inline void dm_consecutive_chunk_count_dec(struct dm_exception *e) |
---|
184 | | -{ |
---|
185 | | -} |
---|
186 | | - |
---|
187 | | -# endif |
---|
188 | 165 | |
---|
189 | 166 | /* |
---|
190 | 167 | * Return the number of sectors in the device. |
---|