Re: [PATCH] btrfs-progs: Move check of mixed block early.

2017-09-01 Thread David Sterba
On Tue, Jul 25, 2017 at 09:57:44AM +0800, Gu Jinxiang wrote: > Make the check of mixed block groups early. > Reason: > We do not support re-initing extent tree for mixed block groups. > So it will return -EINVAL in function reinit_extent_tree. > In this situation, we do not need to start

[PATCH] btrfs-progs: Move check of mixed block early.

2017-07-24 Thread Gu Jinxiang
Make the check of mixed block groups early. Reason: We do not support re-initing extent tree for mixed block groups. So it will return -EINVAL in function reinit_extent_tree. In this situation, we do not need to start transaction. We do not have a btrfs_abort_transaction like kernel now, so we