OpenCloudOS-Kernel/fs/ntfs3
Alexander Lobakin 706cc80260 fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64()
commit 3f5ef5109f6a054ce58b3bec7214ed76c9cc269f 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>
2024-08-29 17:33:13 +02:00
..
lib fs/ntfs3: Add missing header and guards to lib/ headers 2021-09-13 19:41:44 +03:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile
attrib.c fs/ntfs3: Keep runs for $MFT::$ATTR_DATA and $MFT::$ATTR_BITMAP 2024-08-03 08:54:10 +02:00
attrlist.c fs/ntfs3: Use kvfree to free memory allocated by kvmalloc 2024-03-01 13:34:54 +01:00
bitfunc.c fs/ntfs3: Add ntfs_bitmap_weight_le function and refactoring 2022-11-14 19:50:42 +03:00
bitmap.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +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-03 08:54:06 +02:00
file.c fs/ntfs3: Replace inode_trylock with inode_lock 2024-08-03 08:54:07 +02:00
frecord.c fs/ntfs3: Do copy_to_user out of run_lock 2024-08-19 06:04:30 +02:00
fslog.c fs/ntfs3: Update log->page_{mask,bits} if log->page_size changed 2024-08-03 08:54:22 +02:00
fsntfs.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +02:00
index.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +02:00
inode.c fs/ntfs3: Correct undo if ntfs_create_inode failed 2024-08-03 08:54:07 +02:00
lznt.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
namei.c fs/ntfs3: Implement super_operations::shutdown 2024-03-01 13:34:53 +01:00
ntfs.h fs/ntfs3: Fix field-spanning write in INDEX_HDR 2024-08-03 08:54:08 +02:00
ntfs_fs.h fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +02:00
record.c fs/ntfs3: Taking DOS names into account during link counting 2024-06-12 11:11:20 +02:00
run.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
super.c fs/ntfs3: add prefix to bitmap_size() and use BITS_TO_U64() 2024-08-29 17:33:13 +02:00
upcase.c fs/ntfs3: Add option "nocase" 2022-09-30 17:39:47 +03:00
xattr.c fs/ntfs3: Mark volume as dirty if xattr is broken 2024-07-11 12:49:19 +02:00