Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360451
b: refs/heads/master
c: bf023ec
h: refs/heads/master
i:
  360449: 3ebaa2a
  360447: 3a4bf49
v: v3
  • Loading branch information
Ilya Dryomov authored and Josef Bacik committed Feb 20, 2013
1 parent 33f83d9 commit fb37a3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8f2f24bd56a9f0bc7372e6d6aded6fc122b9120
refs/heads/master: bf023ecfcaf114c410759f375073e78b0871c120
10 changes: 5 additions & 5 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -3195,6 +3195,11 @@ int btrfs_balance(struct btrfs_balance_control *bctl,
mutex_lock(&fs_info->balance_mutex);
atomic_dec(&fs_info->balance_running);

if (bctl->sys.flags & BTRFS_BALANCE_ARGS_CONVERT) {
fs_info->num_tolerated_disk_barrier_failures =
btrfs_calc_num_tolerated_disk_barrier_failures(fs_info);
}

if (bargs) {
memset(bargs, 0, sizeof(*bargs));
update_ioctl_balance_args(fs_info, 0, bargs);
Expand All @@ -3205,11 +3210,6 @@ int btrfs_balance(struct btrfs_balance_control *bctl,
__cancel_balance(fs_info);
}

if (bctl->sys.flags & BTRFS_BALANCE_ARGS_CONVERT) {
fs_info->num_tolerated_disk_barrier_failures =
btrfs_calc_num_tolerated_disk_barrier_failures(fs_info);
}

wake_up(&fs_info->balance_wait_q);

return ret;
Expand Down

0 comments on commit fb37a3d

Please sign in to comment.