We reset this bool on every loop through the truncate loop, make this
variable local to the loop.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
int ret;
u64 bytes_deleted = 0;
bool be_nice = false;
- bool should_throttle = false;
ASSERT(control->inode || !control->clear_extent_range);
ASSERT(new_size == 0 || control->min_type == BTRFS_EXTENT_DATA_KEY);
while (1) {
u64 clear_start = 0, clear_len = 0, extent_start = 0;
+ bool should_throttle = false;
fi = NULL;
leaf = path->nodes[0];
control->last_size = new_size;
break;
}
- should_throttle = false;
if (del_item && extent_start != 0 && !control->skip_ref_updates) {
struct btrfs_ref ref = { 0 };