]> www.infradead.org Git - users/jedix/linux-maple.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)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 26 Jan 2025 04:22:43 +0000 (20:22 -0800)
commitb9f958d4f146bd11be33a5f2bc3ced50f86d6b23
tree617494aeb65a61e5094cf423c483c07b9622919b
parent4a9e23159fd37677efc0c2c53e3b45a5d260a90a
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.

Link: https://lkml.kernel.org/r/20241220154831.1086649-8-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Cc: Brian Foster <bfoster@redhat.com>
Cc: Chris Mason <clm@meta.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/fs.h
include/uapi/linux/fs.h