Displaying 1 result from an estimated 1 matches for "need_find_last_ext".
2013 Nov 12
0
[PATCH] Btrfs: incompatible format change to remove hole extents V4
...key;
int ret;
struct btrfs_key *ins_keys;
u32 *ins_sizes;
@@ -3203,6 +3205,9 @@ static noinline int copy_items(struct btrfs_trans_handle *trans,
int i;
struct list_head ordered_sums;
int skip_csum = BTRFS_I(inode)->flags & BTRFS_INODE_NODATASUM;
+ bool has_extents = false;
+ bool need_find_last_extent = (*last_extent == 0);
+ bool done = false;
INIT_LIST_HEAD(&ordered_sums);
@@ -3211,6 +3216,8 @@ static noinline int copy_items(struct btrfs_trans_handle *trans,
if (!ins_data)
return -ENOMEM;
+ first_key.objectid = (u64)-1;
+
ins_sizes = (u32 *)ins_data;
ins_keys = (struct...