linux/fs/ntfs3
Alexander Lobakin 6331ca6e2a fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64()
commit 3f5ef5109f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-09-04 13:23:16 +02:00
..
lib fs/ntfs3: Add missing header and guards to lib/ headers 2021-09-13 19:41:44 +03:00
attrib.c fs/ntfs3: Missed NI_FLAG_UPDATE_PARENT setting 2024-08-19 05:45:08 +02:00
attrlist.c fs/ntfs3: Disable ATTR_LIST_ENTRY size check 2024-03-01 13:21:46 +01:00
bitfunc.c fs/ntfs3: Remove a useless shadowing variable 2021-09-23 19:05:46 +03:00
bitmap.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-09-04 13:23:16 +02:00
debug.h fs/ntfs3. Add forward declarations for structs to debug.h 2021-09-13 19:41:43 +03:00
dir.c fs/ntfs3: Fix getting file type 2024-08-19 05:45:08 +02:00
file.c fs/ntfs3: Replace inode_trylock with inode_lock 2024-08-19 05:45:09 +02:00
frecord.c fs/ntfs3: Merge synonym COMPRESSION_UNIT and NTFS_LZNT_CUNIT 2024-08-19 05:45:08 +02:00
fslog.c fs/ntfs3: Update log->page_{mask,bits} if log->page_size changed 2024-08-19 05:45:16 +02:00
fsntfs.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-09-04 13:23:16 +02:00
index.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-09-04 13:23:16 +02:00
inode.c fs/ntfs3: Merge synonym COMPRESSION_UNIT and NTFS_LZNT_CUNIT 2024-08-19 05:45:08 +02:00
Kconfig fs/ntfs3: Add Kconfig, Makefile and doc 2021-08-13 07:56:37 -07:00
lznt.c fs/ntfs3: Remove tabs before spaces from comment 2021-09-16 17:01:36 +03:00
Makefile fs/ntfs3: Add Kconfig, Makefile and doc 2021-08-13 07:56:37 -07:00
namei.c fs/ntfs3: Refactoring of various minor issues 2023-05-17 11:50:26 +02:00
ntfs.h fs/ntfs3: Fix field-spanning write in INDEX_HDR 2024-08-19 05:45:09 +02:00
ntfs_fs.h fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-09-04 13:23:16 +02:00
record.c fs/ntfs3: Taking DOS names into account during link counting 2024-06-16 13:39:13 +02:00
run.c fs/ntfs3: Check fields while reading 2023-07-23 13:47:46 +02:00
super.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-09-04 13:23:16 +02:00
upcase.c fs/ntfs3: Change right headers to upcase.c 2021-09-13 19:41:45 +03:00
xattr.c fs/ntfs3: Mark volume as dirty if xattr is broken 2024-07-18 13:07:35 +02:00