Displaying 2 results from an estimated 2 matches for "btrfs_remove_leaf_ref".
Did you mean:
btrfs_remove_leaf_refs
2008 Sep 25
0
[PATCH 2/4] Add shared reference cache
...:00:36 2008 +0800
+++ b/ref-cache.c Thu Sep 25 16:02:11 2008 +0800
@@ -78,7 +78,6 @@
}
entry = rb_entry(node, struct btrfs_leaf_ref, rb_node);
- entry->in_tree = 1;
rb_link_node(node, parent, p);
rb_insert_color(node, root);
return NULL;
@@ -103,23 +102,29 @@
return NULL;
}
-int btrfs_remove_leaf_refs(struct btrfs_root *root, u64 max_root_gen)
+int btrfs_remove_leaf_refs(struct btrfs_root *root, u64 max_root_gen,
+ int shared)
{
struct btrfs_leaf_ref *ref = NULL;
struct btrfs_leaf_ref_tree *tree = root->ref_tree;
+ if (shared)
+ tree = &root->fs_info->shared_ref_tree;...
2009 Oct 16
1
Building btrfs-unstable.git against 2.6.31?
...ld the btrfs modules from btrfs-
unstable.git/master against the Ubuntu Karmic 2.6.31 kernel, and get
some failures in ref-cache.c:
/home/jdong/code/kernel/btrfs-0.17/ref-cache.h:62: error:
dereferencing pointer to incomplete type
/home/jdong/code/kernel/btrfs-0.17/ref-cache.c: In function
‘btrfs_remove_leaf_refs’:
/home/jdong/code/kernel/btrfs-0.17/ref-cache.c:123: error: ‘struct
btrfs_root’ has no member named ‘ref_tree’
/home/jdong/code/kernel/btrfs-0.17/ref-cache.c:126: error: ‘struct
btrfs_fs_info’ has no member named ‘shared_ref_tree’
And so on.
Am I not supposed to be building btrfs this way...