Re: [PATCH v8 2/8] btrfs: Cancel filesystem balance

2011-06-29 Thread David Sterba
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) { > > +

Re: [PATCH v8 2/8] btrfs: Cancel filesystem balance

2011-06-28 Thread Li Zefan
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

[PATCH v8 2/8] btrfs: Cancel filesystem balance

2011-06-26 Thread Hugo Mills
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