From: Taotao Chen <chentaotao@xxxxxxxxxxxxxx> After the core logic for handling IOCB_DONTCACHE was implemented in the previous patch, we now formally enable the feature by adding FOP_DONTCACHE to ext4's file operations flags. Signed-off-by: Taotao Chen <chentaotao@xxxxxxxxxxxxxx> --- fs/ext4/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/file.c b/fs/ext4/file.c index beb078ee4811..c514903d85c7 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c @@ -977,7 +977,7 @@ const struct file_operations ext4_file_operations = { .splice_write = iter_file_splice_write, .fallocate = ext4_fallocate, .fop_flags = FOP_MMAP_SYNC | FOP_BUFFER_RASYNC | - FOP_DIO_PARALLEL_WRITE, + FOP_DIO_PARALLEL_WRITE | FOP_DONTCACHE, }; const struct inode_operations ext4_file_inode_operations = { -- 2.34.1