Lines Matching refs:root
51 struct btrfs_fs_info *fs_info = inode->root->fs_info;
93 ASSERT(IS_ALIGNED(start + len, inode->root->fs_info->sectorsize));
95 if (btrfs_fs_incompat(inode->root->fs_info, NO_HOLES))
121 ASSERT(IS_ALIGNED(start + len, inode->root->fs_info->sectorsize) ||
124 if (btrfs_fs_incompat(inode->root->fs_info, NO_HOLES))
162 struct btrfs_root *root,
178 ret = btrfs_insert_empty_item(trans, root, path, &file_key,
205 struct btrfs_root *root,
209 struct btrfs_fs_info *fs_info = root->fs_info;
222 ret = btrfs_search_slot(trans, root, &file_key, path, 0, cow);
258 struct btrfs_root *root,
270 return btrfs_search_slot(trans, root, &file_key, path, ins_len, cow);
347 struct btrfs_fs_info *fs_info = inode->root->fs_info;
399 * read from the commit root and sidestep a nasty deadlock
437 if (inode->root->root_key.objectid ==
457 int btrfs_lookup_csums_list(struct btrfs_root *root, u64 start, u64 end,
461 struct btrfs_fs_info *fs_info = root->fs_info;
488 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
523 ret = btrfs_next_leaf(root, path);
600 int btrfs_lookup_csums_bitmap(struct btrfs_root *root, struct btrfs_path *path,
604 struct btrfs_fs_info *fs_info = root->fs_info;
637 ret = btrfs_search_slot(NULL, root, &key, path, 0, 0);
673 ret = btrfs_next_leaf(root, path);
736 struct btrfs_fs_info *fs_info = inode->root->fs_info;
865 struct btrfs_root *root, u64 bytenr, u64 len)
877 ASSERT(root->root_key.objectid == BTRFS_CSUM_TREE_OBJECTID ||
878 root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID);
889 ret = btrfs_search_slot(trans, root, &key, path, -1, 1);
945 ret = btrfs_del_items(trans, root, path,
989 ret = btrfs_split_item(trans, root, path, &key, offset);
1008 static int find_next_csum_offset(struct btrfs_root *root,
1018 ret = btrfs_next_leaf(root, path);
1040 struct btrfs_root *root,
1043 struct btrfs_fs_info *fs_info = root->fs_info;
1071 item = btrfs_lookup_csum(trans, root, path, bytenr, 1);
1097 ret = find_next_csum_offset(root, path, &next_offset);
1123 ret = btrfs_search_slot(trans, root, &file_key, path,
1178 if (root->root_key.objectid == BTRFS_TREE_LOG_OBJECTID) {
1181 ret = find_next_csum_offset(root, path, &next_offset);
1188 ret = find_next_csum_offset(root, path, &next_offset);
1228 ret = btrfs_insert_empty_item(trans, root, path, &file_key,
1269 struct btrfs_fs_info *fs_info = inode->root->fs_info;
1270 struct btrfs_root *root = inode->root;
1324 "root %llu", type, btrfs_ino(inode), extent_start,
1325 root->root_key.objectid);