From patchwork Thu Mar 14 21:05:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 10853627 Return-Path: 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 2C13D1515 for ; Thu, 14 Mar 2019 21:06:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 128552A031 for ; Thu, 14 Mar 2019 21:06:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E9E52A199; Thu, 14 Mar 2019 21:06:04 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEC7A2A77B for ; Thu, 14 Mar 2019 21:06:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727625AbfCNVGD (ORCPT ); Thu, 14 Mar 2019 17:06:03 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:51884 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727003AbfCNVGD (ORCPT ); Thu, 14 Mar 2019 17:06:03 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2EKwe1S102479; Thu, 14 Mar 2019 21:06:01 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=1Wk4Q4LxuD4W1Vg6UQH3vJ3wku1kpaiAl3mr8kdejqQ=; b=VGy/jHeZvfeSgjUjRPYvBsHCDyChQMPNMXx/IFgIyWmk2/EWjyWBTsjk8evUey87D+jC 5zuqQ18KLiITMDxq/UTwQae072JuwDVe/Qtpjak/9yT0XrdANZvW/LMUHB/WnreZ8N2g IFmaQvmt3AA8BhK46qllL6vzJgyOLlMiP223XRstwMBg0JBYHEVYQNEjtP+17MZ0EWTY R8Rc9ov2hJm6bfqybWnMt9Dx5qfyWicWISbr+Nrg6+6VKICEcZzh/tioRqoF7daK21EF oN/t/ksGicO8by2B1VlXFgOELfPTDPLiTmY9YIGYMo3GBSXnIVlXTFhRIlRVjIslPAw4 DQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2r464ruem0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Mar 2019 21:06:00 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x2EL60j3005499 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Mar 2019 21:06:00 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x2EL5xDN007444; Thu, 14 Mar 2019 21:05:59 GMT Received: from localhost (/10.145.178.102) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 14 Mar 2019 21:05:59 +0000 Subject: [PATCH 21/36] xfs_db: use TYP_FINOBT for finobt metadump From: "Darrick J. Wong" To: sandeen@sandeen.net, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org Date: Thu, 14 Mar 2019 14:05:59 -0700 Message-ID: <155259755947.31886.6074285457193991395.stgit@magnolia> In-Reply-To: <155259742281.31886.17157720770696604377.stgit@magnolia> References: <155259742281.31886.17157720770696604377.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9195 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903140143 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Darrick J. Wong Use the correct xfs_db type for dumping free inode btree blocks. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen --- db/metadump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/metadump.c b/db/metadump.c index 6ecd5685..3cce3012 100644 --- a/db/metadump.c +++ b/db/metadump.c @@ -2607,7 +2607,7 @@ copy_inodes( levels = be32_to_cpu(agi->agi_free_level); finobt = 1; - if (!scan_btree(agno, root, levels, TYP_INOBT, &finobt, + if (!scan_btree(agno, root, levels, TYP_FINOBT, &finobt, scanfunc_ino)) return 0; }