[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250421105026.19577-4-chentaotao@didiglobal.com>
Date: Mon, 21 Apr 2025 10:50:31 +0000
From: 陈涛涛 Taotao Chen <chentaotao@...iglobal.com>
To: "tytso@....edu" <tytso@....edu>, "adilger.kernel@...ger.ca"
<adilger.kernel@...ger.ca>, "akpm@...ux-foundation.org"
<akpm@...ux-foundation.org>, "willy@...radead.org" <willy@...radead.org>
CC: "linux-ext4@...r.kernel.org" <linux-ext4@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
陈涛涛 Taotao Chen <chentaotao@...iglobal.com>
Subject: [PATCH 3/3] ext4: support FOP_DONTCACHE flag
From: Taotao Chen <chentaotao@...iglobal.com>
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@...iglobal.com>
---
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
Powered by blists - more mailing lists