Skip to content

Commit

Permalink
remove lock comment (#2886)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tulsishah authored Jan 9, 2025
1 parent 5bc2b8f commit 17f539f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1379,8 +1379,6 @@ func (fs *fileSystem) symlinkInodeOrDie(

// invalidateChildFileCacheIfExist invalidates the file in read cache. This is used to
// invalidate the file in read cache after deletion of original file.
//
// LOCKS_REQUIRED(fs.mu)
func (fs *fileSystem) invalidateChildFileCacheIfExist(parentInode inode.DirInode, objectGCSName string) (err error) {
if fs.fileCacheHandler != nil {
if bucketOwnedDirInode, ok := parentInode.(inode.BucketOwnedDirInode); ok {
Expand Down Expand Up @@ -2053,7 +2051,6 @@ func (fs *fileSystem) Rename(
return fs.renameNonHierarchicalFile(ctx, oldParent, op.OldName, child.MinObject, newParent, op.NewName)
}

// LOCKS_EXCLUDED(fs.mu)
// LOCKS_EXCLUDED(oldParent)
// LOCKS_EXCLUDED(newParent)
func (fs *fileSystem) renameHierarchicalFile(ctx context.Context, oldParent inode.DirInode, oldName string, oldObject *gcs.MinObject, newParent inode.DirInode, newName string) error {
Expand Down Expand Up @@ -2081,7 +2078,6 @@ func (fs *fileSystem) renameHierarchicalFile(ctx context.Context, oldParent inod
return nil
}

// LOCKS_EXCLUDED(fs.mu)
// LOCKS_EXCLUDED(oldParent)
// LOCKS_EXCLUDED(newParent)
func (fs *fileSystem) renameNonHierarchicalFile(
Expand Down

0 comments on commit 17f539f

Please sign in to comment.