diff options
-rw-r--r-- | drivers/md/dm-exception-store.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-exception-store.h b/drivers/md/dm-exception-store.h index 8a223a48802c..5f9315b32a42 100644 --- a/drivers/md/dm-exception-store.h +++ b/drivers/md/dm-exception-store.h | |||
@@ -162,7 +162,7 @@ static inline sector_t get_dev_size(struct block_device *bdev) | |||
162 | static inline chunk_t sector_to_chunk(struct dm_exception_store *store, | 162 | static inline chunk_t sector_to_chunk(struct dm_exception_store *store, |
163 | sector_t sector) | 163 | sector_t sector) |
164 | { | 164 | { |
165 | return (sector & ~store->chunk_mask) >> store->chunk_shift; | 165 | return sector >> store->chunk_shift; |
166 | } | 166 | } |
167 | 167 | ||
168 | int dm_exception_store_type_register(struct dm_exception_store_type *type); | 168 | int dm_exception_store_type_register(struct dm_exception_store_type *type); |