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, 13 Dec 2024 15:19:11 +0000 (08:19 -0700)
commit5afa507cf5d742ffa56a0641c5c24ea0068b67a1
treeede2e76907caf1ffb7966f655a1c8ca17d3c790b
parenta0741b860e796e2d20f986418cd31a60ade00336
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