]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b88a6c86539eebef9cba3e5a5b20c3e685864c8
tree35f062db803874b298ceb6e115624f79b927e65b
parente09c8cbb842d8780a36380f4a7411691c6933d7a
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