On Wed, Jun 29, 2011 at 02:00:20PM +0800, Li Zefan wrote:
> Hugo Mills wrote:
> > @@ -2149,6 +2150,10 @@ int btrfs_balance(struct btrfs_root *dev_root)
> >bal_info->completed, bal_info->expected);
> > }
> > ret = 0;
> > + if (bal_info->cancel_pending) {
> > +
Hugo Mills wrote:
> This patch adds an ioctl for cancelling a btrfs balance operation
> mid-flight. The ioctl simply sets a flag, and the operation terminates
> after the current block group move has completed.
>
> Signed-off-by: Hugo Mills
> ---
> fs/btrfs/ctree.h |1 +
> fs/btrfs/ioctl.c
This patch adds an ioctl for cancelling a btrfs balance operation
mid-flight. The ioctl simply sets a flag, and the operation terminates
after the current block group move has completed.
Signed-off-by: Hugo Mills
---
fs/btrfs/ctree.h |1 +
fs/btrfs/ioctl.c | 28