[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1512576737-9417-6-git-send-email-josef@toxicpanda.com>
Date: Wed, 6 Dec 2017 11:12:17 -0500
From: Josef Bacik <josef@...icpanda.com>
To: rostedt@...dmis.org, mingo@...hat.com, davem@...emloft.net,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
ast@...nel.org, kernel-team@...com, daniel@...earbox.net,
linux-btrfs@...r.kernel.org
Cc: Josef Bacik <jbacik@...com>
Subject: [PATCH v8 5/5] btrfs: allow us to inject errors at io_ctl_init
From: Josef Bacik <jbacik@...com>
This was instrumental in reproducing a space cache bug.
Signed-off-by: Josef Bacik <jbacik@...com>
Acked-by: Ingo Molnar <mingo@...nel.org>
---
fs/btrfs/free-space-cache.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
index cdc9f4015ec3..daa98dc1f844 100644
--- a/fs/btrfs/free-space-cache.c
+++ b/fs/btrfs/free-space-cache.c
@@ -22,6 +22,7 @@
#include <linux/slab.h>
#include <linux/math64.h>
#include <linux/ratelimit.h>
+#include <linux/bpf.h>
#include "ctree.h"
#include "free-space-cache.h"
#include "transaction.h"
@@ -332,6 +333,7 @@ static int io_ctl_init(struct btrfs_io_ctl *io_ctl, struct inode *inode,
return 0;
}
+BPF_ALLOW_ERROR_INJECTION(io_ctl_init);
static void io_ctl_free(struct btrfs_io_ctl *io_ctl)
{
--
2.7.5
Powered by blists - more mailing lists