]> www.infradead.org Git - users/dwmw2/linux.git/commit
exfat: call bh_read in get_block only when necessary
authorSungjong Seo <sj1557.seo@samsung.com>
Wed, 26 Mar 2025 15:01:16 +0000 (00:01 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Sat, 29 Mar 2025 13:03:11 +0000 (22:03 +0900)
commitc73e680d1f84059e1b1ea82a537f6ccc1c563eb4
tree5343f109c1b75ddfa72c41d1dbb57a0f3c32e9e5
parent59c30e31425833385e6644ad33151420e37eabe1
exfat: call bh_read in get_block only when necessary

With commit 11a347fb6cef ("exfat: change to get file size from DataLength"),
exfat_get_block() can now handle valid_size. However, most partial
unwritten blocks that could be mapped with other blocks are being
inefficiently processed separately as individual blocks.

Except for partial unwritten blocks that require independent processing,
let's handle them simply as before.

Signed-off-by: Sungjong Seo <sj1557.seo@samsung.com>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/inode.c