btrfs: allow error injection for btrfs_search_slot and btrfs_cow_block
authorJosef Bacik <josef@toxicpanda.com>
Wed, 16 Dec 2020 16:18:43 +0000 (11:18 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 21:58:50 +0000 (22:58 +0100)
commitf75e2b79b5ba9dd3e0899840a329c3da02dc8937
treeb839498796cb45ecde7ad9f7b2d81220096a3afd
parent69948022c9261a87c3c256bfa21c132f5099c690
btrfs: allow error injection for btrfs_search_slot and btrfs_cow_block

The following patches are going to address error handling in relocation,
in order to test those patches I need to be able to inject errors in
btrfs_search_slot and btrfs_cow_block, as we call both of these pretty
often in different cases during relocation.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c