summaryrefslogtreecommitdiff
path: root/lib/btrfsutil
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-04-02 09:32:48 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2023-04-02 22:40:13 -0600
commit489eeb7da06700fdfadba337cb4ad6aa33b6f99b (patch)
treec7141e0835497e5537ad82815631acc7da68f09b /lib/btrfsutil
parent0533a704078ae90782b88609b831627e87092b98 (diff)
btrfsutil: RebuiltTree: Update comments for the new cache interface
Diffstat (limited to 'lib/btrfsutil')
-rw-r--r--lib/btrfsutil/rebuilt_tree.go8
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() //////////////////////////////////////////////////////////////////////////////////