Lines Matching defs:leaf
602 * If this is a leaf block and it is corrupt, set the corrupt bit so
1132 struct extent_buffer *leaf;
1153 leaf = btrfs_alloc_tree_block(trans, root, 0, objectid, NULL, 0, 0, 0,
1155 if (IS_ERR(leaf)) {
1156 ret = PTR_ERR(leaf);
1157 leaf = NULL;
1161 root->node = leaf;
1162 btrfs_mark_buffer_dirty(leaf);
1169 btrfs_set_root_bytenr(&root->root_item, leaf->start);
1173 btrfs_set_root_used(&root->root_item, leaf->len);
1189 btrfs_tree_unlock(leaf);
1194 if (leaf)
1195 btrfs_tree_unlock(leaf);
1205 struct extent_buffer *leaf;
1225 leaf = btrfs_alloc_tree_block(trans, root, 0, BTRFS_TREE_LOG_OBJECTID,
1227 if (IS_ERR(leaf)) {
1229 return ERR_CAST(leaf);
1232 root->node = leaf;