Received: by 10.223.164.202 with SMTP id h10csp671707wrb; Wed, 22 Nov 2017 13:27:28 -0800 (PST) X-Google-Smtp-Source: AGs4zMbMh+0NbiyZ0mw/fxAMdqEmbbAb6oJxF0/gn0Eb26kHo5KcaoPHa/BnEA+6/ZzaNMSz8EFy X-Received: by 10.84.248.77 with SMTP id e13mr23187048pln.200.1511386048332; Wed, 22 Nov 2017 13:27:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511386048; cv=none; d=google.com; s=arc-20160816; b=xgFMAPurDgUieXDJIMUVJGQreAIj1mJBTsrDAR8EkmiZLez6uLhkoXRMpM3X5sLa5Y P4xcDaqBCe5QzvuRKs+W8cqn2A2YIXekeScUHevB40aGsdOnEWk8bkvoXecmejJR50X8 0k/WgTAbMSudYhSzUVYhdthiD2sH2msPM3ttgKQQJq/bSb1raKagjb5zqSi/xbWPKmw9 FJBy9S8FqbQQg8i3FecRtZFEkBqz/glMVdgtFRChffm77gRPNi/KAFDFR9OHGXZ9cPCv EkQ2DsztE/SRFr0R0cTqsIC3KGRJySpfeSi0/JfaUFoiESHQDhmXZsHgLchBMO4/U8Of /8/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ntmd4NIHZo1YPJEaMzXKyywMHUyx0uzh1jUTfZ7+faQ=; b=idoxCdQFhy/+ltfln+9bh5bsvnw44/e2Dmrsk84Mvi7A3tXoYlmYYSrEXke8Cmp+Oe TNL1/cf7PtMYJx36rkmY8HAu5VdfzyT/D6xNlj+gPoG1zH7VeopzKi9cwY4eRsnjhqEL mgEOCV0qT34oNbM6PM+nxkTphqyc2XclQH5EKwhx57cA6HX43nnCy+0drIO3P7hIX7tO hSEQ92aflFdL3vKbmdcNIpSh81i8rADhfeE8Rb2oBt77cRSLCQJx/N/QjGbj6kL3Mi8T InhHZ3fomMnas73jTUMPSA6zYOnKxYgbgbYCrpUw0Tt60GrIExOUFYDjShz5OqW4dqug pPkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=xnOWwuE1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z185si13875881pgd.249.2017.11.22.13.27.16; Wed, 22 Nov 2017 13:27:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=xnOWwuE1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752148AbdKVVZh (ORCPT + 77 others); Wed, 22 Nov 2017 16:25:37 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:39427 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752498AbdKVVXp (ORCPT ); Wed, 22 Nov 2017 16:23:45 -0500 Received: by mail-qk0-f196.google.com with SMTP id w125so18616140qkb.6 for ; Wed, 22 Nov 2017 13:23:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ntmd4NIHZo1YPJEaMzXKyywMHUyx0uzh1jUTfZ7+faQ=; b=xnOWwuE1G6jK/f/hzDOypqSQ5fLwfHLo0DZYBk9CiBqxgUp7nrjCYB9ZSCBThrCZFI wifacKg/VEPlkc0m4orNTeqWaEzqKauDCUBj6DOyQAa79KcyMPe7ldm7oGuN8qRf3cij C2EBQwdfL1Px2449NcbmjluGGDC1m6VczzQQZExb3C21MjD7CafpojgwvolprKahR4f5 TWlxk0c8ROtXAsYHhwa1odJGHHLTD0UBWR+3xubarkyUwVcdW1Dcwvg1dpaWPN8xYefT L9GeDQAqB56cubdu3m18hg6OPmPuCoNqZ8bOadX/tVXJEwXxi9ZF7VvgNZiLEgl7YqI8 pK8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ntmd4NIHZo1YPJEaMzXKyywMHUyx0uzh1jUTfZ7+faQ=; b=YCYyfLVmCtzT08ZWXPmYiVFSt3yhExJSgOFk0o1RxS2PB4vej7jxD4FcU34PWaJSjN UWM8sQvdlkvqLjkA0ghMdgoHpWZ1+D10aFIOHh4iHuP+87Py3oIvkrL5gXlnKRk9U9mm OtxluOCH/299g5POIy3ISl9razB+8TFBmWM33ETYBYXEsMwYuQyHa+GOasITiF2DeGq/ p7EFqhei0J+vqmT6DksQWDmPaT6GlBCalUc7T8uKnfDSBUu7ztnYQBQHvfnAsnJesZLL l3Ij5k4WXZeTf0Bram2wNQWPwOZ9b+AT2rn9OZKt+GemIyn9hqZX6iO3T91xNWrdFV7Y 7edA== X-Gm-Message-State: AJaThX5B8/UNY0tgraA/EvQZf1SojiCnHzt9OBUDE6M/pF66yVdh4eLv C5wuTPzSdm8ZoFYv2cKzr78okQ== X-Received: by 10.55.3.130 with SMTP id 124mr33966371qkd.197.1511385824278; Wed, 22 Nov 2017 13:23:44 -0800 (PST) Received: from localhost (cpe-2606-A000-4381-1201-225-22FF-FEB3-E51A.dyn6.twc.com. [2606:a000:4381:1201:225:22ff:feb3:e51a]) by smtp.gmail.com with ESMTPSA id d198sm2234702qkg.16.2017.11.22.13.23.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Nov 2017 13:23:43 -0800 (PST) From: Josef Bacik To: rostedt@goodmis.org, mingo@redhat.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ast@kernel.org, kernel-team@fb.com, daniel@iogearbox.net, linux-btrfs@vger.kernel.org Cc: Josef Bacik Subject: [PATCH v7 5/5] btrfs: allow us to inject errors at io_ctl_init Date: Wed, 22 Nov 2017 16:23:34 -0500 Message-Id: <1511385814-20863-6-git-send-email-josef@toxicpanda.com> X-Mailer: git-send-email 2.7.5 In-Reply-To: <1511385814-20863-1-git-send-email-josef@toxicpanda.com> References: <1511385814-20863-1-git-send-email-josef@toxicpanda.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Josef Bacik This was instrumental in reproducing a space cache bug. Signed-off-by: Josef Bacik Acked-by: Ingo Molnar --- 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 #include #include +#include #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 From 1584795615592312885@xxx Wed Nov 22 19:27:55 +0000 2017 X-GM-THRID: 1584795615592312885 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread