From 17066b22b4693a8c8c41f190a0e7a3ce8c2947d3 Mon Sep 17 00:00:00 2001 From: vadlakondaswetha Date: Tue, 24 Dec 2024 06:42:24 +0000 Subject: [PATCH] PR comment --- internal/fs/handle/file.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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,