exfat: using hweight instead of internal logic
authorJohn Sanpe <sanpeqf@gmail.com>
Tue, 5 Dec 2023 15:58:37 +0000 (23:58 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 8 Jan 2024 12:57:21 +0000 (21:57 +0900)
commit7423546040194e0e74fcfedd089a8b2720fcfc6e
tree850f350b77bf9e1a3adb9c0f26d980704c8a13ad
parent0dd3ee31125508cd67f7e7172247f05b7fd1753a
exfat: using hweight instead of internal logic

Replace the internal table lookup algorithm with the hweight
library, which has instruction set acceleration capabilities.

Use it to increase the length of a single calculation of
the exfat_find_free_bitmap function to the long type.

Signed-off-by: John Sanpe <sanpeqf@gmail.com>
Acked-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/balloc.c