summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorTal Zussman <tz2294@columbia.edu>2026-10-09 12:50:15 -0400
committerJens Axboe <axboe@kernel.dk>2026-10-12 10:29:35 -0600
commit42d502b70ead4c3b387af8fefcd9be80876ca313 (patch)
treef8ef6deca0b3b005c9e6750c528735efce0f985d /rust/kernel
parent9fd1afea19fa7c4ba438a1d162739e0832073a4c (diff)
iomap: reject atomic writes in iomap_file_buffered_write()
Buffered atomic writes are not currently supported. The page cache writes folios back independently, so it cannot guarantee that a range is written atomically. iomap_file_buffered_write() does not check for IOCB_ATOMIC, so a direct write that falls back to it would complete an atomic write without atomicity. While no such case currently exists, fail IOCB_ATOMIC writes with -EOPNOTSUPP, so that a future fallback cannot complete an atomic write non-atomically. Suggested-by: John Garry <john.garry@linux.dev> Reviewed-by: John Garry <john.garry@linux.dev> Reviewed-by: Hannes Reinecke <hare@kernel.org> Signed-off-by: Tal Zussman <tz2294@columbia.edu> Link: https://patch.msgid.link/20261009-blkdev-fixes-v6-7-307939c387df@columbia.edu Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions