diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-04-02 09:32:48 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-04-02 22:40:13 -0600 |
commit | 489eeb7da06700fdfadba337cb4ad6aa33b6f99b (patch) | |
tree | c7141e0835497e5537ad82815631acc7da68f09b /lib | |
parent | 0533a704078ae90782b88609b831627e87092b98 (diff) |
btrfsutil: RebuiltTree: Update comments for the new cache interface
Diffstat (limited to 'lib')
-rw-r--r-- | lib/btrfsutil/rebuilt_tree.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/btrfsutil/rebuilt_tree.go b/lib/btrfsutil/rebuilt_tree.go index e65a3f6..d25ffc3 100644 --- a/lib/btrfsutil/rebuilt_tree.go +++ b/lib/btrfsutil/rebuilt_tree.go @@ -33,13 +33,13 @@ type RebuiltTree struct { mu sync.RWMutex Roots containers.Set[btrfsvol.LogicalAddr] // There are 3 more mutable "members" that are protected by - // `mu`; but they live in a shared ARCache. They are all + // `mu`; but they live in a shared Cache. They are all // derived from tree.Roots, which is why it's OK if they get // evicted. // - // 1. tree.leafToRoots() = tree.forrest.leafs.Load(tree.ID) - // 2. tree.RebuiltItems() = tree.forrest.incItems.Load(tree.ID) - // 3. tree.RebuiltPotentialItems() = tree.forrest.excItems.Load(tree.ID) + // 1. tree.leafToRoots() = tree.forrest.leafs.Acquire(tree.ID) + // 2. tree.RebuiltItems() = tree.forrest.incItems.Acquire(tree.ID) + // 3. tree.RebuiltPotentialItems() = tree.forrest.excItems.Acquire(tree.ID) } // evictable member 1: .leafToRoots() ////////////////////////////////////////////////////////////////////////////////// |