10 #ifndef _LINUX_DM_EXCEPTION_STORE
11 #define _LINUX_DM_EXCEPTION_STORE
46 unsigned argc,
char **argv);
61 void *callback_context);
75 void *callback_context);
137 # if defined(CONFIG_LBDAF) || (BITS_PER_LONG == 64)
138 # define DM_CHUNK_CONSECUTIVE_BITS 8
139 # define DM_CHUNK_NUMBER_BITS 56
143 return chunk & (
chunk_t)((1ULL << DM_CHUNK_NUMBER_BITS) - 1ULL);
146 static inline unsigned dm_consecutive_chunk_count(
struct dm_exception *
e)
148 return e->
new_chunk >> DM_CHUNK_NUMBER_BITS;
151 static inline void dm_consecutive_chunk_count_inc(
struct dm_exception *
e)
153 e->
new_chunk += (1ULL << DM_CHUNK_NUMBER_BITS);
155 BUG_ON(!dm_consecutive_chunk_count(e));
158 static inline void dm_consecutive_chunk_count_dec(
struct dm_exception *e)
160 BUG_ON(!dm_consecutive_chunk_count(e));
162 e->
new_chunk -= (1ULL << DM_CHUNK_NUMBER_BITS);
166 # define DM_CHUNK_CONSECUTIVE_BITS 0
173 static inline unsigned dm_consecutive_chunk_count(
struct dm_exception *e)
178 static inline void dm_consecutive_chunk_count_inc(
struct dm_exception *e)
182 static inline void dm_consecutive_chunk_count_dec(
struct dm_exception *e)