summaryrefslogtreecommitdiff
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2018-08-15 18:42:34 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2019-09-12 15:59:41 +0300
commit8fab010644363f8f80194322aa7a81e38c867af3 (patch)
tree35f062db803874b298ceb6e115624f79b927e65b /fs/fuse/fuse_i.h
parent0cd1eb9a4160a96e0ec9b93b2e7b489f449bf22d (diff)
downloadlinux-8fab010644363f8f80194322aa7a81e38c867af3.tar.xz
fuse: delete dentry if timeout is zero
Don't hold onto dentry in lru list if need to re-lookup it anyway at next access. Only do this if explicitly enabled, otherwise it could result in performance regression. More advanced version of this patch would periodically flush out dentries from the lru which have gone stale. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index 242d47752e78..fed68a427a4c 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -692,6 +692,9 @@ struct fuse_conn {
/* Send DESTROY request */
unsigned int destroy:1;
+ /* Delete dentries that have gone stale */
+ unsigned int delete_stale:1;
+
/** The number of requests waiting for completion */
atomic_t num_waiting;