diff options
author | Eric Sandeen <sandeen@redhat.com> | 2025-02-11 23:14:21 +0300 |
---|---|---|
committer | Namjae Jeon <linkinjeon@kernel.org> | 2025-03-05 15:53:20 +0300 |
commit | fda94a9919fd632033979ad7765a99ae3cab9289 (patch) | |
tree | a81abf0d5590179ae4e971bf95a86d0b5f0d906a /tools/perf/scripts/python/stackcollapse.py | |
parent | 9da33619e0ca53627641bc97d1b93ec741299111 (diff) | |
download | linux-fda94a9919fd632033979ad7765a99ae3cab9289.tar.xz |
exfat: short-circuit zero-byte writes in exfat_file_write_iter
When generic_write_checks() returns zero, it means that
iov_iter_count() is zero, and there is no work to do.
Simply return success like all other filesystems do, rather than
proceeding down the write path, which today yields an -EFAULT in
generic_perform_write() via the
(fault_in_iov_iter_readable(i, bytes) == bytes) check when bytes
== 0.
Fixes: 11a347fb6cef ("exfat: change to get file size from DataLength")
Reported-by: Noah <kernel-org-10@maxgrass.eu>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions