Received: by 10.223.164.202 with SMTP id h10csp670336wrb; Wed, 22 Nov 2017 13:25:49 -0800 (PST) X-Google-Smtp-Source: AGs4zMai0+xG1uW5xgXkAjP9/+8j3tOwiHgFb+OqFEdGUp/poBlWtQLcpg7WqSLYh12JlSD7zPC/ X-Received: by 10.98.36.25 with SMTP id r25mr18628434pfj.72.1511385949084; Wed, 22 Nov 2017 13:25:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511385949; cv=none; d=google.com; s=arc-20160816; b=xeBjOTH3A31G+pdSBZBPYqKzpiZIGaPNZ3UJWGJVb9kNEulM5r2+04Afp9Xyyv8rqA EdE26tCx4mCp1MgWB7IOrrl6BvcDLomgsN7fFzIGjeRvcCkRdg7U65+nIPpVkJogbMm4 hF9see52Znbooaz8K/v+AE3nVP9b6EeH7B8NjhXGHNS+Gr7T5cHuW/G7hvM33bIcpxBb +H4cUosmq+cp/0IA74YrUTkS8SNK4pnFdwu2EV1dmlOHGWKEW+jdQMXk+umkVtAF89dm YHIcz4x8GQ20donRkUB+EcCo0m66WM9rzVKFMkwtYr3VaRAEIPMuITta19onWanQvwMg X7eQ== 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=mQDI30tIDWkp1aoIUesh/J2iZisbWqH9val4OS3e7JM=; b=awUE55NT+WP7zkBph2upeXIjLsiddMKU+p8CegH6tzRD3+dtRAx1a8i6vfU8r7EJQD 8baioCkJ7NtE1Ozq3m2l1OpRe0qGiW2ugwmNiJBKgE5FMXZaW64qI7L1700rrTd+cQaO BKI8MfLtA9NRh6p6MfIr3l5t5DtH/J290U3YT1we+NPKbQpqB7sfagcxrrP4WzUtSfQl yGVtkjd0W+BqJVpqs80cBtX9mAnferpwz3Jq+EHF2Y3oCZ1GPKq+33fc1vxmLb9iUydH NXDvlCx20qu42WNaO4NH/hM9S0w1Lc41wLWj2DzF4dgjaq6AKYkp9M6k6WAq+NJJGGd1 TYHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=GzbFNcQj; 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 a13si14240805pgq.440.2017.11.22.13.25.37; Wed, 22 Nov 2017 13:25:49 -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=GzbFNcQj; 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 S1752515AbdKVVXr (ORCPT + 77 others); Wed, 22 Nov 2017 16:23:47 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:43895 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752278AbdKVVXk (ORCPT ); Wed, 22 Nov 2017 16:23:40 -0500 Received: by mail-qt0-f193.google.com with SMTP id w10so13635003qtb.10 for ; Wed, 22 Nov 2017 13:23:40 -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=mQDI30tIDWkp1aoIUesh/J2iZisbWqH9val4OS3e7JM=; b=GzbFNcQj4LypT52tI73vzqfkoFrVu52bSiuS22idKCpQ1qG7Stt283kgl+knv5RHVX ea4uFu7XYG3UK9V2witALyqfpQGmWCoGG55U3hQZ187zWRfdMBD0I+JOeOloPCathYnS YclgTQL3lDdoT8E8kUcavCr0omM+DtUFbiucikgw13Ws9wiz925bcyWCz4G+0aI4/x8w u0iGKtS1jeS0byftYoqiCQRDF5vLtvp4iBIH1JQ/L1kDTlMoxP/Wi5HaUoIql7QkpLv5 gV2Ny/BqCjM5vemxQE9+kU/kTTp2cc5dftd7Yro8TYCcEl/o+0rHi6zi7XztaisZm+fD puRw== 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=mQDI30tIDWkp1aoIUesh/J2iZisbWqH9val4OS3e7JM=; b=lQvwVminucyOLHD5L1ZiFGo03ED/wyM1IPJMnqAxYS3pb8vAS1d6xXI1dgZuBrFyFW ixvd8E/aTS476p6x6/MUiCDMITKungg11sFTfEFnNiFqFdO77yvBP3mzGM3Do1YKnRXR 4RWb2hMSQftHSW7nmGWC/3dD5G/QbpG6eqw39xiTqwmlemtTvvSkJtG+RN3fISbfUMKI o8YzbQre2L9KWo0Ho3QZe/iPdkHAl2QJMPjig9UwSEYuFw5Abt2KF1kvvRr7hZJ/CZXX gwpArr8CNmQQaySy6YQzGKGapvWNHsMKz5xUgNZQKmxqf7i+T1gcoVGZfMJa7LcQQQ8+ 1y+Q== X-Gm-Message-State: AJaThX7TMo5C1DMK3iLe52LSDy6TWCrpDfqZy3ky78AQ4XTtI7lSBDEU 6wDQ41lgeYYTdOthy2UUDPe08A== X-Received: by 10.237.36.23 with SMTP id r23mr35418426qtc.326.1511385820028; Wed, 22 Nov 2017 13:23:40 -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 f96sm11292458qtb.59.2017.11.22.13.23.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Nov 2017 13:23:39 -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 2/5] btrfs: make open_ctree error injectable Date: Wed, 22 Nov 2017 16:23:31 -0500 Message-Id: <1511385814-20863-3-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 allows us to do error injection with BPF for open_ctree. Signed-off-by: Josef Bacik Acked-by: Ingo Molnar --- 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..69d17a640b94 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include "ctree.h" #include "disk-io.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 1584802986659754170@xxx Wed Nov 22 21:25:04 +0000 2017 X-GM-THRID: 1584795561753738067 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread