// Fetch attributes for the supplied inode and fill in an appropriate // expiration time for them. // // LOCKS_REQUIRED(in) func (fs *fileSystem) getAttributes( ctx context.Context, in inode.Inode) ( attr fuseops.InodeAttributes, expiration time.Time, err error) { // Call through. attr, err = in.Attributes(ctx) if err != nil { return } // Set up the expiration time. if fs.inodeAttributeCacheTTL > 0 { expiration = time.Now().Add(fs.inodeAttributeCacheTTL) } return }