Received: by 10.223.164.202 with SMTP id h10csp1260043wrb; Fri, 17 Nov 2017 17:29:46 -0800 (PST) X-Google-Smtp-Source: AGs4zMaaEVd7MTji4Nu3xU5jAtQOvlyAj21colTrzHdrg2FC0jSLiKVuG0ddkuGFZtq6YnosxPHi X-Received: by 10.84.172.1 with SMTP id m1mr7139993plb.174.1510968586265; Fri, 17 Nov 2017 17:29:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510968586; cv=none; d=google.com; s=arc-20160816; b=0Aqx8qKB7+JiOULZZIYQn6Dsf0qGOTCg9HxS0RPvB8atxVwJquI7ymMlnso7LRtSK+ fKbHwcobQynQxCf7i4m/RpTbPhNw6X9PcWnrIcwld/hv7GgxEo8PYMff+zCgLPCiowTY HzpyYe/68/rVn/7Mps/L/fqT/bfSuDXi8sSSlHCTqtx2Hi5satKWXCRlxvyOOvpVsbm8 cMHEV57JrqRIP1DWIj7SEcoMWbGDHrxZ3Kr9KKmoilDKyl45yhlp8OjLNdZOgLneDX26 gbzOYj/rMmllrfphrvkhu8+UjcKYnXJ/BHr3YUokXQIg9dJ64UacibdCOHGRJt5Y39vT yTAQ== 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=iuXGy0rJRpXJ7S1sPQwG1g1m3d3noIvQYgVUcMUQzF8=; b=NKWsyRX/UzMbSZJwMKmBB3hyHId3Dyvd7qn/2sl2MGZG8jSHlVyWbLBj1KY9y2rr0O Lo476nQFuByqa4qO7S1aOsWyO7kjLcFwMuldCBs93DCUXW+CTZO9WF4cLZI4/JML6xM0 7PNsIvqp91gGDY5WVmeAkTWUUaBbHrdYKTrf1qpKtKZijb3bR4bMNcjOXmy0zdvFhnHp lQsbiaqxIk5Wjs4DNdgNQs2KFvZrpZPSFUX2BqWW2tYXHWXzxsjONunx7IGDD4mIJhBT N+nc+q+6rUQTKJqNI1Z5uNfSbRkCNPwwXYboZb0KaZVFMuGLoXurjMpkKyoV7ztdJMKG ANrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=XOplChOw; 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 y3si3575216pgp.202.2017.11.17.17.29.27; Fri, 17 Nov 2017 17:29:46 -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=XOplChOw; 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 S935364AbdKQSAs (ORCPT + 93 others); Fri, 17 Nov 2017 13:00:48 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:44283 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753405AbdKQSAO (ORCPT ); Fri, 17 Nov 2017 13:00:14 -0500 Received: by mail-qt0-f195.google.com with SMTP id h42so7791201qtk.11 for ; Fri, 17 Nov 2017 10:00:13 -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=iuXGy0rJRpXJ7S1sPQwG1g1m3d3noIvQYgVUcMUQzF8=; b=XOplChOw+IwU73iafDx/9068XUwE3GjfoB50FnjASng/8rpXlzR5GHBo+AMDHyASjO kPBpvgRUHa/dyYnkmUaeQGRSK+12N9ejy5lcKhj35udgCQ0MLPUd0Jps5SeH57cy7PD6 giaduhe+Ct59lpdgzEKOYF1GT+iDHe8Uty0Gjoi5lud1N1aPRq6ay4MkGAPXNXU29ndV L8ZCW/lzpJSOdSol6DnS+i53rckjEXPWb9sNSOYqPtL7SKZwm34cN5sipsHYrqyWKvtl 57AQqQClWwZu9dGc8qsey8KVgfhcszOSoMfqgZ/UbZsIspCSAAhfwfq3BaPNho6UbWe8 U/Vg== 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=iuXGy0rJRpXJ7S1sPQwG1g1m3d3noIvQYgVUcMUQzF8=; b=bwRGHvhnrP5uhT2EoyvXXLFsOXfBNc6V5zSsvsvdHlxfijVeg6cRL1O38ta5ICDfiF PAwHov4YufmgIaXpooseMar1agzMHR1lgUAmxuWftk0+U3G8NMdJJ3OcJyBszvrkq8Cc z4r1MFcZ58W4BEJ0f/HsiMpqtEt5eGQQml2CVx9SDM4xjffQR75FhgE57Juv4uZcHRRd TTuaY98pf8GQoY7GwURYMCDkbz++4Bv4QisceufU53tNpBVqr9OD1O/WOAomZ5GGqiId bSXlVt7V9Bv77hwJPW4NH3G4u32QwSWHjLXAF3pjRwaKiLnMSf1QWlZgboVEb8sFlkrY 0QPQ== X-Gm-Message-State: AJaThX7F85sgGlO7uN9gWUbgFFI3Br2SpzWSkkJdgYl+w9InV7XB/1/Y kqTRB23vFx9z2mM3f0v9E9yEsA== X-Received: by 10.200.26.13 with SMTP id v13mr9978612qtj.107.1510941612990; Fri, 17 Nov 2017 10:00:12 -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 h184sm2813548qkd.73.2017.11.17.10.00.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Nov 2017 10:00:12 -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 2/4] btrfs: make open_ctree error injectable Date: Fri, 17 Nov 2017 13:00:05 -0500 Message-Id: <1510941607-3997-3-git-send-email-josef@toxicpanda.com> X-Mailer: git-send-email 2.7.5 In-Reply-To: <1510941607-3997-1-git-send-email-josef@toxicpanda.com> References: <1510941607-3997-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 allows us to do error injection with BPF for open_ctree. Signed-off-by: Josef Bacik --- fs/btrfs/disk-io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index dfdab849037b..c6b4e1f07072 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -31,6 +31,7 @@ #include #include #include +#include #include "ctree.h" #include "disk-io.h" #include "hash.h" @@ -3283,6 +3284,7 @@ int open_ctree(struct super_block *sb, 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) { -- 2.7.5 From 1584768680002098882@xxx Wed Nov 22 12:19:47 +0000 2017 X-GM-THRID: 1584677183556001958 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread