projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92ace99
)
btrfs: make open_ctree error injectable
author
Josef Bacik
<
[email protected]
>
Mon, 11 Dec 2017 16:36:47 +0000
(11:36 -0500)
committer
Alexei Starovoitov
<
[email protected]
>
Tue, 12 Dec 2017 16:56:26 +0000
(08:56 -0800)
This allows us to do error injection with BPF for open_ctree.
Signed-off-by: Josef Bacik <
[email protected]
>
Acked-by: Ingo Molnar <
[email protected]
>
Signed-off-by: Alexei Starovoitov <
[email protected]
>
fs/btrfs/disk-io.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/disk-io.c
b/fs/btrfs/disk-io.c
index 10a2a579cc7f6a3569212444fb37dd5ddcf0c0c7..02b5f5667754ef3ef81977ebdaa503852d2c4a30 100644
(file)
--- a/
fs/btrfs/disk-io.c
+++ b/
fs/btrfs/disk-io.c
@@
-30,6
+30,7
@@
#include <linux/ratelimit.h>
#include <linux/uuid.h>
#include <linux/semaphore.h>
+#include <linux/bpf.h>
#include <asm/unaligned.h>
#include "ctree.h"
#include "disk-io.h"
@@
-3123,6
+3124,7
@@
recovery_tree_root:
goto fail_block_groups;
goto retry_root_backup;
}
+BPF_ALLOW_ERROR_INJECTION(open_ctree);
static void btrfs_end_buffer_write_sync(struct buffer_head *bh, int uptodate)
{