From 885a341df65f9a1f312e3b08576528583b649eee Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 3 Jan 2019 17:52:08 +0100 Subject: fusefrontend: Do not Clear cache at end of Rmdir function. We already do 'defer fs.dirCache.Clear()', so this is no longer required. --- internal/fusefrontend/fs_dir.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/fusefrontend/fs_dir.go b/internal/fusefrontend/fs_dir.go index 3c71e45..320e49f 100644 --- a/internal/fusefrontend/fs_dir.go +++ b/internal/fusefrontend/fs_dir.go @@ -252,8 +252,6 @@ retry: if nametransform.IsLongContent(cName) { nametransform.DeleteLongNameAt(parentDirFd, cName) } - // The now-deleted directory may have been in the dirCache. Clear it. - fs.dirCache.Clear() return fuse.OK } -- cgit v1.2.3