exfat: using ffs instead of internal logic
authorJohn Sanpe <sanpeqf@gmail.com>
Thu, 7 Dec 2023 23:47:01 +0000 (07:47 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 8 Jan 2024 12:57:21 +0000 (21:57 +0900)
commit34939ae005ec402ee183956114b1a74cb57b8b9d
treeff6d23f2e041f78a8d3f4e4b0af0c19212ffcc80
parent7423546040194e0e74fcfedd089a8b2720fcfc6e
exfat: using ffs instead of internal logic

Replaced the internal table lookup algorithm with ffs of
the bitops library with better performance.

Use it to increase the single processing length of the
exfat_find_free_bitmap function, from single-byte search to 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
fs/exfat/exfat_fs.h