diff options
author | 2024-03-27 16:23:46 +0100 | |
---|---|---|
committer | 2024-04-01 10:49:27 +0100 | |
commit | 3f5ef5109f6a054ce58b3bec7214ed76c9cc269f (patch) | |
tree | 106238b4efdb7dc6709328272ce27dd3fc3a912e /lib/netdev-notifier-error-inject.c | |
parent | s390/cio: rename bitmap_size() -> idset_bitmap_size() (diff) | |
download | linux-rng-3f5ef5109f6a054ce58b3bec7214ed76c9cc269f.tar.xz linux-rng-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 <yury.norov@gmail.com> # BITS_TO_U64()
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions