hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/md/dm-exception-store.h
....@@ -11,6 +11,7 @@
1111 #define _LINUX_DM_EXCEPTION_STORE
1212
1313 #include <linux/blkdev.h>
14
+#include <linux/list_bl.h>
1415 #include <linux/device-mapper.h>
1516
1617 /*
....@@ -27,7 +28,7 @@
2728 * chunk within the device.
2829 */
2930 struct dm_exception {
30
- struct list_head hash_list;
31
+ struct hlist_bl_node hash_list;
3132
3233 chunk_t old_chunk;
3334 chunk_t new_chunk;
....@@ -135,9 +136,8 @@
135136 /*
136137 * Funtions to manipulate consecutive chunks
137138 */
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
141141
142142 static inline chunk_t dm_chunk_number(chunk_t chunk)
143143 {
....@@ -162,29 +162,6 @@
162162
163163 e->new_chunk -= (1ULL << DM_CHUNK_NUMBER_BITS);
164164 }
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
188165
189166 /*
190167 * Return the number of sectors in the device.