diff --git a/samples/forgetfs/forget_fs.go b/samples/forgetfs/forget_fs.go index 997ff48..ecdee79 100644 --- a/samples/forgetfs/forget_fs.go +++ b/samples/forgetfs/forget_fs.go @@ -17,7 +17,6 @@ package forgetfs import ( "fmt" "os" - "runtime" "github.com/jacobsa/fuse" "github.com/jacobsa/fuse/fuseops" @@ -184,16 +183,6 @@ func (fs *fsImpl) Check() { fs.mu.Lock() defer fs.mu.Unlock() - // On Linux we often don't receive forget ops, and never receive destroy ops - // (cf. http://goo.gl/EUbxEg, fuse-devel thread "Root inode lookup count"). - // So there's not really much we can check here. - // - // TODO(jacobsa): Figure out why we don't receive destroy. If we can reliably - // receive it, we can treat it as "forget all". - if runtime.GOOS == "linux" { - return - } - for k, v := range fs.inodes { // Special case: we don't require the root inode to have reached zero. // OS X doesn't seem to send forgets for the root, and Linux only does