summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-03-04 11:21:43 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-03-15 09:28:45 -0600
commitbb9dafebfbf3bfd6ea111c88371844f3402f3f3f (patch)
tree996f557b23618650983146ff0e93e8204a8ff5d3
parent0733161bf46a279f11e20f9ffd34e0136c13a884 (diff)
btrfsutil: Rebuiltforrest: Update obsolete references to LRUCache in comments
-rw-r--r--lib/btrfsutil/rebuilt_tree.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/btrfsutil/rebuilt_tree.go b/lib/btrfsutil/rebuilt_tree.go
index 9e23074..3133a9e 100644
--- a/lib/btrfsutil/rebuilt_tree.go
+++ b/lib/btrfsutil/rebuilt_tree.go
@@ -33,7 +33,7 @@ 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 LRUcache. They are all
+ // `mu`; but they live in a shared ARCache. They are all
// derived from tree.Roots, which is why it's OK if they get
// evicted.
//
@@ -42,7 +42,7 @@ type RebuiltTree struct {
// 3. tree.PotentialItems() = tree.forrest.excItems.Load(tree.ID)
}
-// LRU member 1: .leafToRoots() ////////////////////////////////////////////////////////////////////////////////////////
+// evictable member 1: .leafToRoots() //////////////////////////////////////////////////////////////////////////////////
// leafToRoots returns all leafs (lvl=0) in the filesystem that pass
// .isOwnerOK, whether or not they're in the tree.
@@ -129,7 +129,7 @@ func (tree *RebuiltTree) isOwnerOK(owner btrfsprim.ObjID, gen btrfsprim.Generati
}
}
-// LRU members 2 and 3: .Items() and .PotentialItems() /////////////////////////////////////////////////////////////////
+// evictable members 2 and 3: .Items() and .PotentialItems() ///////////////////////////////////////////////////////////
// Items returns a map of the items contained in this tree.
//