fs: add RWF_DONTCACHE iocb and FOP_DONTCACHE file_operations flag
authorJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2024 16:11:12 +0000 (09:11 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2024 15:30:39 +0000 (08:30 -0700)
commit635a047b08f3f9525bfe1230de2a6469beb74397
treef8aa04b9aa23c9fe5d2e4cce00fbdfe5c7348ea3
parent8162f7b2f0533a04ec5b49de5c8262e478c635f0
fs: add RWF_DONTCACHE iocb and FOP_DONTCACHE file_operations flag

If a file system supports uncached buffered IO, it may set FOP_DONTCACHE
and enable support for RWF_DONTCACHE. If RWF_DONTCACHE is attempted
without the file system supporting it, it'll get errored with -EOPNOTSUPP.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/fs.h
include/uapi/linux/fs.h