btrfs-progs: Refactor btrfs_root paramters in btrfs-corrupt-block.c
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Thu, 18 May 2017 02:36:19 +0000 (10:36 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jul 2017 11:35:11 +0000 (13:35 +0200)
commit060c7b3a1a40d2e9cacbdb37a02791bacae32491
tree6f33f522cbbf33bc5c8cb55886c87a25e0df799f
parentfa5fd68021322069ea379db3c20a8e154bbca581
btrfs-progs: Refactor btrfs_root paramters in btrfs-corrupt-block.c

Refactor the following functions and its callers to get rid of
incorrectly passed btrfs_root parameters:

1) corrupt_keys()
2) corrupt_metadata_block()

The only reason passing btrfs_root for them is to get block sizes.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
btrfs-corrupt-block.c