diff options
| author | Alexander Lobakin <[email protected]> | 2024-03-27 15:23:46 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-04-01 09:49:27 +0000 |
| commit | 3f5ef5109f6a054ce58b3bec7214ed76c9cc269f (patch) | |
| tree | 106238b4efdb7dc6709328272ce27dd3fc3a912e /lib/test_bitmap.c | |
| parent | s390/cio: rename bitmap_size() -> idset_bitmap_size() (diff) | |
| download | kernel-3f5ef5109f6a054ce58b3bec7214ed76c9cc269f.tar.gz kernel-3f5ef5109f6a054ce58b3bec7214ed76c9cc269f.zip | |
fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64()
bitmap_size() is a pretty generic name and one may want to use it for
a generic bitmap API function. At the same time, its logic is
NTFS-specific, as it aligns to the sizeof(u64), not the sizeof(long)
(although it uses ideologically right ALIGN() instead of division).
Add the prefix 'ntfs3_' used for that FS (not just 'ntfs_' to not mix
it with the legacy module) and use generic BITS_TO_U64() while at it.
Suggested-by: Yury Norov <[email protected]> # BITS_TO_U64()
Reviewed-by: Przemek Kitszel <[email protected]>
Reviewed-by: Yury Norov <[email protected]>
Signed-off-by: Alexander Lobakin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions
