Re: [PATCH 2/2] btrfs-progs: Use existing facility to replace read_data_extent function

2015-08-25 Thread David Sterba
On Fri, Aug 21, 2015 at 11:21:27AM +0800, Qu Wenruo wrote: > Function read_data_extent() in btrfs-image.c is using manual-and-read > codes. > Replace it with existing read_extent_data() to reduce duplication. > > Also, now we can use other mirror to try our best to do the dump, just > like read_tr

[PATCH 2/2] btrfs-progs: Use existing facility to replace read_data_extent function

2015-08-20 Thread Qu Wenruo
Function read_data_extent() in btrfs-image.c is using manual-and-read codes. Replace it with existing read_extent_data() to reduce duplication. Also, now we can use other mirror to try our best to do the dump, just like read_tree_block(). Signed-off-by: Qu Wenruo --- btrfs-image.c | 58