summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorDaeMyung Kang <charsyam@gmail.com>2026-10-13 23:58:46 +0900
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-20 18:46:01 +0900
commit569f514f0ec74c4162241e10b7893bff109f8aca (patch)
tree23dffd2dd27356a9be4e64eb9968167dce3a4fa2 /rust/kernel/alloc/kvec/errors.rs
parent9b32a74f4ef52d26d68ceb3f5e492d5eac26f5fc (diff)
ntfs: flush the block device when syncing a directory
ntfs_dir_fsync() writes directory metadata and calls sync_blockdev(), but does not flush the block device write cache. A successful fsync() can therefore leave the directory's metadata in a volatile device cache. Issue a cache flush after successful writeback and return any flush error. This matches the regular-file fsync and syncfs paths. With QEMU blkdebug injecting -EIO for flush_to_disk, fsync() on an NTFS directory returned 0 before this change while syncfs() returned -EIO. After this change, both return -EIO. A kretprobe confirmed the flush error in the directory fsync path. Fixes: 1e9ea7e04472 ("Revert "fs: Remove NTFS classic"") Cc: stable@vger.kernel.org Signed-off-by: DaeMyung Kang <charsyam@gmail.com> Reviewed-by: Baolin Liu <liubaolin@kylinos.cn> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions