Searched refs:drop_args (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/fs/btrfs/ |
H A D | reflink.c | 183 struct btrfs_drop_extents_args drop_args = { 0 }; in clone_copy_inline_extent() local 269 drop_args.path = path; in clone_copy_inline_extent() 270 drop_args.start = drop_start; in clone_copy_inline_extent() 271 drop_args.end = aligned_end; in clone_copy_inline_extent() 272 drop_args.drop_cache = true; in clone_copy_inline_extent() 273 ret = btrfs_drop_extents(trans, root, BTRFS_I(dst), &drop_args); in clone_copy_inline_extent() 284 btrfs_update_inode_bytes(BTRFS_I(dst), datal, drop_args.bytes_found); in clone_copy_inline_extent()
|
H A D | file.c | 2358 struct btrfs_drop_extents_args drop_args = { 0 }; in btrfs_replace_file_extents() local 2406 drop_args.path = path; in btrfs_replace_file_extents() 2407 drop_args.end = end + 1; in btrfs_replace_file_extents() 2408 drop_args.drop_cache = true; in btrfs_replace_file_extents() 2410 drop_args.start = cur_offset; in btrfs_replace_file_extents() 2411 ret = btrfs_drop_extents(trans, root, inode, &drop_args); in btrfs_replace_file_extents() 2415 drop_args.bytes_found); in btrfs_replace_file_extents() 2434 if (!extent_info && cur_offset < drop_args.drop_end && in btrfs_replace_file_extents() 2437 drop_args.drop_end); in btrfs_replace_file_extents() 2448 } else if (!extent_info && cur_offset < drop_args.drop_end) { in btrfs_replace_file_extents() [all …]
|
H A D | tree-log.c | 649 struct btrfs_drop_extents_args drop_args = { 0 }; in replay_one_extent() local 727 drop_args.start = start; in replay_one_extent() 728 drop_args.end = extent_end; in replay_one_extent() 729 drop_args.drop_cache = true; in replay_one_extent() 730 ret = btrfs_drop_extents(trans, root, BTRFS_I(inode), &drop_args); in replay_one_extent() 911 btrfs_update_inode_bytes(BTRFS_I(inode), nbytes, drop_args.bytes_found); in replay_one_extent() 2483 struct btrfs_drop_extents_args drop_args = { 0 }; in replay_one_buffer() local 2494 drop_args.start = from; in replay_one_buffer() 2495 drop_args.end = (u64)-1; in replay_one_buffer() 2496 drop_args.drop_cache = true; in replay_one_buffer() [all …]
|
H A D | inode.c | 618 struct btrfs_drop_extents_args drop_args = { 0 }; in cow_file_range_inline() local 649 drop_args.path = path; in cow_file_range_inline() 650 drop_args.start = 0; in cow_file_range_inline() 651 drop_args.end = fs_info->sectorsize; in cow_file_range_inline() 652 drop_args.drop_cache = true; in cow_file_range_inline() 653 drop_args.replace_extent = true; in cow_file_range_inline() 654 drop_args.extent_item_size = btrfs_file_extent_calc_inline_size(data_len); in cow_file_range_inline() 655 ret = btrfs_drop_extents(trans, root, inode, &drop_args); in cow_file_range_inline() 661 ret = insert_inline_extent(trans, path, inode, drop_args.extent_inserted, in cow_file_range_inline() 672 btrfs_update_inode_bytes(inode, size, drop_args.bytes_found); in cow_file_range_inline() [all …]
|