Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361009
b: refs/heads/master
c: 3a01aa7
h: refs/heads/master
i:
  361007: a7d0154
v: v3
  • Loading branch information
Ilya Dryomov authored and Chris Mason committed Mar 7, 2013
1 parent 8b555ae commit cc53a31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2cc65e3e57d636a159d92945655b1574e47dba63
refs/heads/master: 3a01aa7a25274308fe813a6237f678aed901cea3
5 changes: 5 additions & 0 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -3235,6 +3235,11 @@ int btrfs_balance(struct btrfs_balance_control *bctl,
update_ioctl_balance_args(fs_info, 0, bargs);
}

if ((ret && ret != -ECANCELED && ret != -ENOSPC) ||
balance_need_close(fs_info)) {
__cancel_balance(fs_info);
}

wake_up(&fs_info->balance_wait_q);

return ret;
Expand Down

0 comments on commit cc53a31

Please sign in to comment.