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 transaction. > We do not have a btrfs_abort_transaction like kernel now, > so we should prevent starting transaction not necessary.
I've fixed the crash in another way, and started adding parts of the transaction abort code. The check for mixed blockgroups IMO belongs inside the function and not to cmd_check, as it's a lower level implementation detail. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html