Message ID | 153965940329.1256.12407610006092032283.stgit@magnolia (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2515318FD for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 16 Oct 2018 03:10:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10ACF29866 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 16 Oct 2018 03:10:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 03FBA29883; Tue, 16 Oct 2018 03:10:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91F0729866 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 16 Oct 2018 03:10:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 99E526B0006; Mon, 15 Oct 2018 23:10:14 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 94D426B0007; Mon, 15 Oct 2018 23:10:14 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 83EAF6B0008; Mon, 15 Oct 2018 23:10:14 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by kanga.kvack.org (Postfix) with ESMTP id 44A016B0006 for <linux-mm@kvack.org>; Mon, 15 Oct 2018 23:10:14 -0400 (EDT) Received: by mail-pl1-f198.google.com with SMTP id l7-v6so17163620plg.6 for <linux-mm@kvack.org>; Mon, 15 Oct 2018 20:10:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:subject:from:to:cc:date :message-id:in-reply-to:references:user-agent:mime-version :content-transfer-encoding; bh=SGDSArbiullpYs/XPOG6T2xvgHyk5haCgm1b67adURI=; b=py0y+e5ywYa1PFaodI6UHk9DGE/iIob+kTmCzLBICNXOFRh7roUmCj7BLyhAX9JHmy FOePz/Iuc1gAsq3VOaGDM4vE66V23ZnRvHXU2yZfKc2r6vkiy/SnqB50K8oyB/hVa5SA gy3ITUhiDG643bQhJ7QXBe3UnkU1Xrz6MbgjHMnxH8HnzMoGz+yZbq+Ck0krAeaV4BCH tyiRSs0sTSdvJRAwN2+fesZnShebRWJivtR1DG1tbzx2X68WNUsxQ+8un+dh/oYKHzgy BFP4+SuAxdumLSBDNqke22Bh6LZe26+IuYopTpU2SfU9tL/c4tFMO6be3tJ/mMM/uDsb VGHw== X-Gm-Message-State: ABuFfoi6YikcZBc2O1TmKrRn22dodSyMU78/4ssU1jgDXFe8keeQe4lj /L6DllvU5bGWeJWn+fxav1BPXFfMChYE+Krw+9eHIhMOCov/n8RnvednRX0GKPHVfWuedPjbkDe xAeJn5WGZkVTloMVEg+xxF0hShfPssfHG9c5crPZKaqra491c6t+3sCGB9oZV0gjymg== X-Received: by 2002:a62:564e:: with SMTP id k75-v6mr20270720pfb.33.1539659413946; Mon, 15 Oct 2018 20:10:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV62JoIfdQOjLN/l1HVRRkn9JQ5UKpH41EonnAt7UNOtg1/iN+iqBfKZxjgkDvui1Y9N6at99 X-Received: by 2002:a62:564e:: with SMTP id k75-v6mr20270686pfb.33.1539659413219; Mon, 15 Oct 2018 20:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539659413; cv=none; d=google.com; s=arc-20160816; b=N9g7xbmJmwC/69mZBzbLjvysr/43QLBdzSfnukD4LmpBX5UMrTlzFKo/bw8AXO7dD0 eLGge85X2BZUx7fulGY527cxyNpNuZEyaT9o0aplnZF66k45NeRvRXgPtTWbAh1ErRCp U0ZHrqtEpchNyVd2R/mM1QK66fq7SusSs+w9p7okoCTR03jSERpRem9sV6N9W1wfuqyR kRxKBl+au+agEWcIAc71y0m24AJrFYYO7XiZFSGTVHNBmfuIj1mZLfMveESSv9xu7XKT 5fxeY0g4tCGIAcdriKOF5bt095VW4yoLPFjUd7bsn3Sm+Lymj0/GYet2WH7g0//6ZupT cYtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:message-id:date:cc:to:from:subject:dkim-signature; bh=SGDSArbiullpYs/XPOG6T2xvgHyk5haCgm1b67adURI=; b=k4vifbVJTaJac68m0efJbkrCwIjr3BohsdkV1WSWPwzVZDvxdoyjqHfE2cWS3TIMNK bkL3gA1oIwsU4ESGO4ScsMSGh67OPz9gf6fS0QEQGokYCESjOUT0ZHsFRKdOg4JZTHtb MwnS4pkmKD7RlFstMN3QpjIbN/VLeqQOAmGFbH2GjSi01CBui+SzLTioTm9OGFVqYPQh wQy44x0FdtjYyo15TB2Fq7YQKftYC2t49poUk4H6RN3firLQR4x2FXE3I+VaKJ8yboF+ L/VgtDTD5L4YqeZ53n5T2bXrKkQyITAolODVAqUeTvjDxiAhrfwtVFMyDt3u5rcKH3MU +SKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=Uw9E7nnM; spf=pass (google.com: domain of darrick.wong@oracle.com designates 156.151.31.86 as permitted sender) smtp.mailfrom=darrick.wong@oracle.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from userp2130.oracle.com (userp2130.oracle.com. [156.151.31.86]) by mx.google.com with ESMTPS id i187-v6si9434492pfc.25.2018.10.15.20.10.12 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 20:10:13 -0700 (PDT) Received-SPF: pass (google.com: domain of darrick.wong@oracle.com designates 156.151.31.86 as permitted sender) client-ip=156.151.31.86; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=Uw9E7nnM; spf=pass (google.com: domain of darrick.wong@oracle.com designates 156.151.31.86 as permitted sender) smtp.mailfrom=darrick.wong@oracle.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9G38XLF044702; Tue, 16 Oct 2018 03:10:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=SGDSArbiullpYs/XPOG6T2xvgHyk5haCgm1b67adURI=; b=Uw9E7nnMu3ge5iFXy0pq2s9r2VZXkGrqjt4de4omMzWo3/eHvqHkfqn932/4hZ5zvNfl 6IsgXeavJq7RZwf73sZcM8Ce5oI3H1/XLsbOgFcBB+ozlcNTu6e2c0i+Vds0aH/UJX5K BVufzAjo+TpYtdq985oyTVKGduGmoC14LHj7+mxHWawPsXywRuDjyJVKyg78TKVgeoIc LvEga2CyCYPKkmUXMfBbN3gCmn5c6GsBZxAZ3KZmWyGbEPVKNJWhpgbsRIGkR2G7B6ln xYYSfYv13VeS71XlcmD/2qq8krNNDuvP5ZZ00gj2nyPC1E1PNtacHwv6zPVjjCIzp30J Sg== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2n384tx1de-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Oct 2018 03:10:12 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w9G3A5Sd007582 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Oct 2018 03:10:06 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w9G3A5L2003597; Tue, 16 Oct 2018 03:10:05 GMT Received: from localhost (/10.159.227.150) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 15 Oct 2018 20:10:04 -0700 Subject: [PATCH 01/26] xfs: add a per-xfs trace_printk macro From: "Darrick J. Wong" <darrick.wong@oracle.com> To: david@fromorbit.com, darrick.wong@oracle.com Cc: sandeen@redhat.com, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-unionfs@vger.kernel.org, linux-xfs@vger.kernel.org, linux-mm@kvack.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, ocfs2-devel@oss.oracle.com Date: Mon, 15 Oct 2018 20:10:03 -0700 Message-ID: <153965940329.1256.12407610006092032283.stgit@magnolia> In-Reply-To: <153965939489.1256.7400115244528045860.stgit@magnolia> References: <153965939489.1256.7400115244528045860.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9047 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=967 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810160026 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
fs: fixes for serious clone/dedupe problems
|
expand
|
diff --git a/fs/xfs/xfs_error.h b/fs/xfs/xfs_error.h index 246d3e989c6c..5caa8bdf6c38 100644 --- a/fs/xfs/xfs_error.h +++ b/fs/xfs/xfs_error.h @@ -76,6 +76,11 @@ extern int xfs_errortag_set(struct xfs_mount *mp, unsigned int error_tag, unsigned int tag_value); extern int xfs_errortag_add(struct xfs_mount *mp, unsigned int error_tag); extern int xfs_errortag_clearall(struct xfs_mount *mp); + +/* trace printk version of xfs_err and friends */ +#define xfs_tprintk(mp, fmt, args...) \ + trace_printk("dev %d:%d " fmt, MAJOR((mp)->m_super->s_dev), \ + MINOR((mp)->m_super->s_dev), ##args) #else #define xfs_errortag_init(mp) (0) #define xfs_errortag_del(mp) @@ -83,6 +88,7 @@ extern int xfs_errortag_clearall(struct xfs_mount *mp); #define xfs_errortag_set(mp, tag, val) (ENOSYS) #define xfs_errortag_add(mp, tag) (ENOSYS) #define xfs_errortag_clearall(mp) (ENOSYS) +#define xfs_tprintk(mp, fmt, args...) do { } while (0) #endif /* DEBUG */ /*