btrfs-progs: convert: factor out block iteration callback
authorJeff Mahoney <jeffm@suse.com>
Fri, 5 Jun 2015 21:41:09 +0000 (23:41 +0200)
committerDavid Sterba <dsterba@suse.cz>
Fri, 5 Jun 2015 21:41:25 +0000 (23:41 +0200)
commit1f93b9d4ced64b51b0ac3a410e76ab0a36ea989c
treecb32d41e725bf71289659c8d62c0e616be3f9f7f
parent76c38116b338e57930aa25d76940b9b32b618db6
btrfs-progs: convert: factor out block iteration callback

block_iterate_proc uses the libext2fs error return codes when it doesn't
need them to return the error. We can push this out to __block_iterate_proc
and allow the reiserfs converter to share the code.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
btrfs-convert.c