Lines Matching defs:leaf
430 * If this is a leaf block and it is corrupt, set the corrupt bit so
840 struct extent_buffer *leaf;
861 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0,
863 if (IS_ERR(leaf)) {
864 ret = PTR_ERR(leaf);
865 leaf = NULL;
869 root->node = leaf;
870 btrfs_mark_buffer_dirty(trans, leaf);
877 btrfs_set_root_bytenr(&root->root_item, leaf->start);
881 btrfs_set_root_used(&root->root_item, leaf->len);
890 btrfs_tree_unlock(leaf);
926 struct extent_buffer *leaf;
938 leaf = btrfs_alloc_tree_block(trans, root, 0, BTRFS_TREE_LOG_OBJECTID,
940 if (IS_ERR(leaf))
941 return PTR_ERR(leaf);
943 root->node = leaf;