btrfs: allow us to inject errors at io_ctl_init
authorJosef Bacik <jbacik@fb.com>
Mon, 11 Dec 2017 16:36:50 +0000 (11:36 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 12 Dec 2017 17:02:40 +0000 (09:02 -0800)
commit023f46c5b807ae5fff83b57d918727a5b9dbee55
tree39d63df8a9c2794258d6d4328c7b18d10a2ecc29
parent965de87e54b803223bff703ea6b2a76c056695ae
btrfs: allow us to inject errors at io_ctl_init

This was instrumental in reproducing a space cache bug.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
fs/btrfs/free-space-cache.c