]> www.infradead.org Git - users/hch/misc.git/commit
fs: add RWF_DONTCACHE iocb and FOP_DONTCACHE file_operations flag
authorJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2024 15:47:45 +0000 (08:47 -0700)
committerChristian Brauner <brauner@kernel.org>
Sat, 4 Jan 2025 08:36:44 +0000 (09:36 +0100)
commitaf6505e5745b9f3a670de405b08b73573343c15c
tree9bea7c020feb8e1064ab98675976c70a3360bf0a
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
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>
Link: https://lore.kernel.org/r/20241220154831.1086649-8-axboe@kernel.dk
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/fs.h
include/uapi/linux/fs.h