diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2012-01-16 15:04:49 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2012-01-16 15:04:49 -0500 |
commit | a7e99c691af553fc15ac46a51f130b7c59a65f76 (patch) | |
tree | 55491f285683951d509819a66e614ac6f12659dd /fs/btrfs/ctree.h | |
parent | 837d5b6e46d1a4af5b6cc8f2fe83cb5de79a2961 (diff) |
Btrfs: allow for canceling restriper
Implement an ioctl for canceling restriper. Currently we wait until
relocation of the current block group is finished, in future this can be
done by triggering a commit. Balance item is deleted and no memory
about the interrupted balance is kept.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 1afda75d5414..dfc136cc07d7 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1216,6 +1216,7 @@ struct btrfs_fs_info { | |||
1216 | struct mutex balance_mutex; | 1216 | struct mutex balance_mutex; |
1217 | atomic_t balance_running; | 1217 | atomic_t balance_running; |
1218 | atomic_t balance_pause_req; | 1218 | atomic_t balance_pause_req; |
1219 | atomic_t balance_cancel_req; | ||
1219 | struct btrfs_balance_control *balance_ctl; | 1220 | struct btrfs_balance_control *balance_ctl; |
1220 | wait_queue_head_t balance_wait_q; | 1221 | wait_queue_head_t balance_wait_q; |
1221 | 1222 | ||