[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <174786678526.1385038.17134582776355667676.stgit@frogsfrogsfrogs>
Date: Wed, 21 May 2025 15:45:07 -0700
From: "Darrick J. Wong" <djwong@...nel.org>
To: tytso@....edu
Cc: linux-ext4@...r.kernel.org
Subject: [PATCH 7/7] fuse2fs: cache symlink targets in the kernel
From: Darrick J. Wong <djwong@...nel.org>
Speed up symlinks by allowing the kernel to cache them.
Signed-off-by: "Darrick J. Wong" <djwong@...nel.org>
---
misc/fuse2fs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
index 49c77569a0336b..2368c87ef0b614 100644
--- a/misc/fuse2fs.c
+++ b/misc/fuse2fs.c
@@ -735,6 +735,9 @@ static void *op_init(struct fuse_conn_info *conn
if (ff->acl)
conn->want |= FUSE_CAP_POSIX_ACL;
#endif
+#ifdef FUSE_CAP_CACHE_SYMLINKS
+ conn->want |= FUSE_CAP_CACHE_SYMLINKS;
+#endif
#if FUSE_VERSION >= FUSE_MAKE_VERSION(3, 0)
conn->time_gran = 1;
cfg->use_ino = 1;
Powered by blists - more mailing lists