Lines Matching refs:extent_info
2263 struct btrfs_replace_extent_info *extent_info, in btrfs_insert_replace_extent() argument
2279 if (extent_info->disk_offset == 0 && in btrfs_insert_replace_extent()
2287 key.offset = extent_info->file_offset; in btrfs_insert_replace_extent()
2294 write_extent_buffer(leaf, extent_info->extent_buf, in btrfs_insert_replace_extent()
2299 btrfs_set_file_extent_offset(leaf, extent, extent_info->data_offset); in btrfs_insert_replace_extent()
2301 if (extent_info->is_new_extent) in btrfs_insert_replace_extent()
2306 ret = btrfs_inode_set_file_extent_range(inode, extent_info->file_offset, in btrfs_insert_replace_extent()
2312 if (extent_info->disk_offset == 0) { in btrfs_insert_replace_extent()
2319 if (extent_info->is_new_extent && extent_info->insertions == 0) { in btrfs_insert_replace_extent()
2320 key.objectid = extent_info->disk_offset; in btrfs_insert_replace_extent()
2322 key.offset = extent_info->disk_len; in btrfs_insert_replace_extent()
2325 extent_info->file_offset, in btrfs_insert_replace_extent()
2326 extent_info->qgroup_reserved, in btrfs_insert_replace_extent()
2332 extent_info->disk_offset, in btrfs_insert_replace_extent()
2333 extent_info->disk_len, 0); in btrfs_insert_replace_extent()
2334 ref_offset = extent_info->file_offset - extent_info->data_offset; in btrfs_insert_replace_extent()
2340 extent_info->insertions++; in btrfs_insert_replace_extent()
2357 struct btrfs_replace_extent_info *extent_info, in btrfs_replace_file_extents() argument
2389 if (!btrfs_fs_incompat(fs_info, NO_HOLES) || extent_info) in btrfs_replace_file_extents()
2415 if (!extent_info) in btrfs_replace_file_extents()
2429 (extent_info && extent_info->is_new_extent))) in btrfs_replace_file_extents()
2436 if (!extent_info && cur_offset < drop_args.drop_end && in btrfs_replace_file_extents()
2450 } else if (!extent_info && cur_offset < drop_args.drop_end) { in btrfs_replace_file_extents()
2471 if (extent_info && in btrfs_replace_file_extents()
2472 drop_args.drop_end > extent_info->file_offset) { in btrfs_replace_file_extents()
2474 extent_info->file_offset; in btrfs_replace_file_extents()
2477 extent_info, replace_len, in btrfs_replace_file_extents()
2483 extent_info->data_len -= replace_len; in btrfs_replace_file_extents()
2484 extent_info->data_offset += replace_len; in btrfs_replace_file_extents()
2485 extent_info->file_offset += replace_len; in btrfs_replace_file_extents()
2502 if (!extent_info || extent_info->update_times) in btrfs_replace_file_extents()
2527 if (!extent_info && len) { in btrfs_replace_file_extents()
2544 if (extent_info && !extent_info->is_new_extent) in btrfs_replace_file_extents()
2569 if (!extent_info && cur_offset < ino_size && in btrfs_replace_file_extents()
2578 } else if (!extent_info && cur_offset < drop_args.drop_end) { in btrfs_replace_file_extents()
2588 if (extent_info) { in btrfs_replace_file_extents()
2590 extent_info, extent_info->data_len, in btrfs_replace_file_extents()