xfs: flag as supporting FOP_UNCACHED buffered-uncached.4
authorJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2024 16:15:19 +0000 (09:15 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2024 17:22:52 +0000 (10:22 -0700)
iomap supports uncached IO, enable the use of RWF_UNCACHED with XFS by
flagging support with FOP_UNCACHED.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/xfs/xfs_file.c

index b19916b11fd563d693032c52d49fa38a272a9bd3..4fe593896bc510e331c1cb79fbe0a5bfc012ea0b 100644 (file)
@@ -1595,7 +1595,8 @@ const struct file_operations xfs_file_operations = {
        .fadvise        = xfs_file_fadvise,
        .remap_file_range = xfs_file_remap_range,
        .fop_flags      = FOP_MMAP_SYNC | FOP_BUFFER_RASYNC |
-                         FOP_BUFFER_WASYNC | FOP_DIO_PARALLEL_WRITE,
+                         FOP_BUFFER_WASYNC | FOP_DIO_PARALLEL_WRITE |
+                         FOP_UNCACHED,
 };
 
 const struct file_operations xfs_dir_file_operations = {