diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-03-29 10:49:07 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-03-29 22:49:02 -0600 |
commit | eeac64d0f4a7ff4afb67a793b7a9d826a00ab96d (patch) | |
tree | aead6cfc38663643e73e03da899a1f8d721adb8b /lib/btrfs/io3_btree.go | |
parent | ab6f5d5d783f7fb211aa759a0e01ec716b58ccef (diff) |
btrfs: io3_btree.go: Fix ordering of sections
Diffstat (limited to 'lib/btrfs/io3_btree.go')
-rw-r--r-- | lib/btrfs/io3_btree.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/btrfs/io3_btree.go b/lib/btrfs/io3_btree.go index b60f54a..f1436fb 100644 --- a/lib/btrfs/io3_btree.go +++ b/lib/btrfs/io3_btree.go @@ -14,15 +14,6 @@ import ( // This file is ordered from low-level to high-level. -// btrfstree.NodeSource //////////////////////////////////////////////////////// - -// ReadNode implements btrfstree.NodeSource. -func (fs *FS) ReadNode(path btrfstree.Path) (*btrfstree.Node, error) { - return btrfstree.FSReadNode(fs, path) -} - -var _ btrfstree.NodeSource = (*FS)(nil) - // btrfstree.NodeFile ////////////////////////////////////////////////////////// type treeInfo struct { @@ -85,6 +76,15 @@ func (fs *FS) ParentTree(tree btrfsprim.ObjID) (btrfsprim.ObjID, btrfsprim.Gener var _ btrfstree.NodeFile = (*FS)(nil) +// btrfstree.NodeSource //////////////////////////////////////////////////////// + +// ReadNode implements btrfstree.NodeSource. +func (fs *FS) ReadNode(path btrfstree.Path) (*btrfstree.Node, error) { + return btrfstree.FSReadNode(fs, path) +} + +var _ btrfstree.NodeSource = (*FS)(nil) + // btrfstree.TreeOperator ////////////////////////////////////////////////////// // TreeWalk implements btrfstree.TreeOperator. |