All of lore.kernel.org
 help / color / mirror / Atom feed
* [f2fs-dev] [PATCH] f2fs: f2fs supports uncached buffered I/O
@ 2025-07-15  3:10 ` Qi Han
  0 siblings, 0 replies; 20+ messages in thread
From: Qi Han via Linux-f2fs-devel @ 2025-07-15  3:10 UTC (permalink / raw)
  To: jaegeuk, chao; +Cc: axboe, Qi Han, linux-kernel, linux-f2fs-devel

Jens has already completed the development of uncached buffered I/O
in git [1], and in f2fs, the feature can be enabled simply by setting
the FOP_DONTCACHE flag in f2fs_file_operations.

[1]
https://lore.kernel.org/all/20241220154831.1086649-10-axboe@kernel.dk/T/#m58520a94b46f543d82db3711453dfc7bb594b2b0

Signed-off-by: Qi Han <hanqi@vivo.com>
---
 fs/f2fs/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 696131e655ed..d8da1fc2febf 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -5425,5 +5425,5 @@ const struct file_operations f2fs_file_operations = {
 	.splice_read	= f2fs_file_splice_read,
 	.splice_write	= iter_file_splice_write,
 	.fadvise	= f2fs_file_fadvise,
-	.fop_flags	= FOP_BUFFER_RASYNC,
+	.fop_flags	= FOP_BUFFER_RASYNC | FOP_DONTCACHE,
 };
-- 
2.48.1



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-07-25  2:37 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15  3:10 [f2fs-dev] [PATCH] f2fs: f2fs supports uncached buffered I/O Qi Han via Linux-f2fs-devel
2025-07-15  3:10 ` Qi Han
2025-07-15  6:58 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2025-07-15  6:58   ` Chao Yu
2025-07-15  8:14   ` [f2fs-dev] " hanqi via Linux-f2fs-devel
2025-07-15  8:14     ` hanqi
2025-07-15 14:28 ` [f2fs-dev] " Jens Axboe
2025-07-15 14:28   ` Jens Axboe
2025-07-16  3:34   ` [f2fs-dev] " hanqi via Linux-f2fs-devel
2025-07-16  3:34     ` hanqi
2025-07-16  3:43     ` [f2fs-dev] " Jens Axboe
2025-07-16  3:43       ` Jens Axboe
2025-07-16  8:27       ` [f2fs-dev] " hanqi via Linux-f2fs-devel
2025-07-16  8:27         ` hanqi
2025-07-24 13:09         ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2025-07-24 13:09           ` Chao Yu
2025-07-25  1:44           ` [f2fs-dev] " hanqi via Linux-f2fs-devel
2025-07-25  1:44             ` hanqi
2025-07-25  2:37             ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2025-07-25  2:37               ` Chao Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.