linux/fs/exfat
Zhengxu Zhang 6038537c4a exfat: fdatasync flag should be same like generic_write_sync()
[ Upstream commit 2f2d42a17b ]

Test: androbench by default setting, use 64GB sdcard.
 the random write speed:
	without this patch 3.5MB/s
	with this patch 7MB/s

After patch "11a347fb6c", the random write speed decreased significantly.
the .write_iter() interface had been modified, and check the differences
with generic_file_write_iter(), when calling generic_write_sync() and
exfat_file_write_iter() to call vfs_fsync_range(), the fdatasync flag is
wrong, and make not use the fdatasync mode, and make random write speed
decreased. So use generic_write_sync() instead of vfs_fsync_range().

Fixes: 11a347fb6c ("exfat: change to get file size from DataLength")
Signed-off-by: Zhengxu Zhang <zhengxu.zhang@unisoc.com>
Acked-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-15 12:14:02 +02:00
..
balloc.c exfat: fix soft lockup in exfat_clear_bitmap 2025-03-13 13:02:08 +01:00
cache.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
dir.c exfat: fix the infinite loop in exfat_readdir() 2025-01-17 13:40:35 +01:00
exfat_fs.h exfat: fix soft lockup in exfat_clear_bitmap 2025-03-13 13:02:08 +01:00
exfat_raw.h exfat: add ioctls for accessing attributes 2023-10-31 10:00:51 +09:00
fatent.c exfat: fix the infinite loop in exfat_find_last_cluster() 2025-04-10 14:39:26 +02:00
file.c exfat: fdatasync flag should be same like generic_write_sync() 2025-08-15 12:14:02 +02:00
inode.c exfat: call bh_read in get_block only when necessary 2025-05-29 11:02:03 +02:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile exfat: add Kconfig and Makefile 2020-03-05 21:00:40 -05:00
misc.c exfat: convert to new timestamp accessors 2023-10-18 13:26:21 +02:00
namei.c exfat: add a check for invalid data size 2025-04-10 14:39:30 +02:00
nls.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
super.c exfat: Implement sops->shutdown and ioctl 2024-09-18 07:40:56 +09:00