btrfs: tree-checker: Allow error injection for tree-checker
authorQu Wenruo <wqu@suse.com>
Wed, 24 Apr 2019 07:22:53 +0000 (15:22 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:52 +0000 (19:02 +0200)
commit02529d7a1077c5d00d990143cbd78aa56bb7c7cb
tree3a23bfae92cd76e006859430c54050f8552f689a
parent51d470aeaa3a4ac5bdf98743ac1d32008e8dafa4
btrfs: tree-checker: Allow error injection for tree-checker

Allowing error injection for btrfs_check_leaf_full() and
btrfs_check_node() is useful to test the failure path of btrfs write
time tree check.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tree-checker.c