fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64()
[linux-block.git] / fs / ntfs3 / ntfs_fs.h
index 79356fd29a14141de34ed006517b153fd9e4872b..ea5b5e814e6340b1b61c96ee3665bff3e5e1c05c 100644 (file)
@@ -966,9 +966,9 @@ static inline bool run_is_empty(struct runs_tree *run)
 }
 
 /* NTFS uses quad aligned bitmaps. */
-static inline size_t bitmap_size(size_t bits)
+static inline size_t ntfs3_bitmap_size(size_t bits)
 {
-       return ALIGN((bits + 7) >> 3, 8);
+       return BITS_TO_U64(bits) * sizeof(u64);
 }
 
 #define _100ns2seconds 10000000