btrfs-progs: convert: Add support to rollback new convert image
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 31 May 2016 02:46:00 +0000 (10:46 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Jun 2016 16:15:19 +0000 (18:15 +0200)
commit9c4b820412746b32d400333d7e4337a3ee710701
tree23d668bd710c2b5320e3f65ece0558921b144147
parentcfdcb4fa616cb7cef3f11e266ac57adba9079ac0
btrfs-progs: convert: Add support to rollback new convert image

For new btrfs-convert, it's less restrict for metadata chunk allocation.
While the may_rollback() function is still following the restrict 1:1
mapping check for all chunks, it will not allow some new convert image
to be rolled back.

Add new per extent check for new convert to allow it to be rolled back.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-convert.c