diff --git a/internal/fs/handle/file.go b/internal/fs/handle/file.go index ea28688138..d2d417ce92 100644 --- a/internal/fs/handle/file.go +++ b/internal/fs/handle/file.go @@ -53,12 +53,8 @@ type FileHandle struct { readOnly bool } -func NewFileHandle( - inode *inode.FileInode, - fileCacheHandler *file.CacheHandler, - cacheFileForRangeRead bool, - metricHandle common.MetricHandle, - readOnly bool) (fh *FileHandle) { +// LOCKS_REQUIRED(fh.inode.mu) +func NewFileHandle(inode *inode.FileInode, fileCacheHandler *file.CacheHandler, cacheFileForRangeRead bool, metricHandle common.MetricHandle, readOnly bool) (fh *FileHandle) { fh = &FileHandle{ inode: inode, fileCacheHandler: fileCacheHandler,