30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
From 9c2fdcdf9d8963a6fa30005a859816639d0bbf95 Mon Sep 17 00:00:00 2001
|
|
From: Jens Axboe <axboe@kernel.dk>
|
|
Date: Tue, 27 May 2025 07:28:54 -0600
|
|
Subject: Revert "Disable FOP_DONTCACHE for now due to bugs"
|
|
|
|
This reverts commit 478ad02d6844217cc7568619aeb0809d93ade43d.
|
|
|
|
Both the read and write side dirty && writeback races should be resolved
|
|
now, revert the commit that disabled FOP_DONTCACHE for filesystems.
|
|
|
|
Link: https://lore.kernel.org/linux-fsdevel/20250525083209.GS2023217@ZenIV/
|
|
Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
|
Link: https://lore.kernel.org/20250527133255.452431-4-axboe@kernel.dk
|
|
Signed-off-by: Christian Brauner <brauner@kernel.org>
|
|
---
|
|
include/linux/fs.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/include/linux/fs.h
|
|
+++ b/include/linux/fs.h
|
|
@@ -2186,7 +2186,7 @@ struct file_operations {
|
|
/* Supports asynchronous lock callbacks */
|
|
#define FOP_ASYNC_LOCK ((__force fop_flags_t)(1 << 6))
|
|
/* File system supports uncached read/write buffered IO */
|
|
-#define FOP_DONTCACHE 0 /* ((__force fop_flags_t)(1 << 7)) */
|
|
+#define FOP_DONTCACHE ((__force fop_flags_t)(1 << 7))
|
|
|
|
/* Wrap a directory iterator that needs exclusive inode access */
|
|
int wrap_directory_iterator(struct file *, struct dir_context *,
|