diff options
Diffstat (limited to 'drivers/md/bitmap.h')
-rw-r--r-- | drivers/md/bitmap.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/bitmap.h b/drivers/md/bitmap.h index e196e6a560e8..55ca5aec84e4 100644 --- a/drivers/md/bitmap.h +++ b/drivers/md/bitmap.h | |||
@@ -103,7 +103,6 @@ typedef __u16 bitmap_counter_t; | |||
103 | 103 | ||
104 | /* how many blocks per chunk? (this is variable) */ | 104 | /* how many blocks per chunk? (this is variable) */ |
105 | #define CHUNK_BLOCK_RATIO(bitmap) ((bitmap)->mddev->bitmap_info.chunksize >> BITMAP_BLOCK_SHIFT) | 105 | #define CHUNK_BLOCK_RATIO(bitmap) ((bitmap)->mddev->bitmap_info.chunksize >> BITMAP_BLOCK_SHIFT) |
106 | #define CHUNK_BLOCK_SHIFT(bitmap) ((bitmap)->chunkshift - BITMAP_BLOCK_SHIFT) | ||
107 | 106 | ||
108 | #endif | 107 | #endif |
109 | 108 | ||
@@ -178,7 +177,7 @@ struct bitmap { | |||
178 | struct mddev *mddev; /* the md device that the bitmap is for */ | 177 | struct mddev *mddev; /* the md device that the bitmap is for */ |
179 | 178 | ||
180 | /* bitmap chunksize -- how much data does each bit represent? */ | 179 | /* bitmap chunksize -- how much data does each bit represent? */ |
181 | unsigned long chunkshift; /* chunksize = 2^chunkshift (for bitops) */ | 180 | unsigned long chunkshift; /* chunksize = 2^(chunkshift+9) (for bitops) */ |
182 | unsigned long chunks; /* total number of data chunks for the array */ | 181 | unsigned long chunks; /* total number of data chunks for the array */ |
183 | 182 | ||
184 | __u64 events_cleared; | 183 | __u64 events_cleared; |