fuse: delete dentry if timeout is zero
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 15 Aug 2018 15:42:34 +0000 (17:42 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 12 Sep 2019 12:59:41 +0000 (14:59 +0200)
commit8fab010644363f8f80194322aa7a81e38c867af3
tree35f062db803874b298ceb6e115624f79b927e65b
parent0cd1eb9a4160a96e0ec9b93b2e7b489f449bf22d
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>
fs/fuse/dir.c
fs/fuse/fuse_i.h