Message ID | 20230606092806.1604491-2-chandan.babu@oracle.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <linux-xfs-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77124C7EE24 for <linux-xfs@archiver.kernel.org>; Tue, 6 Jun 2023 09:28:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231766AbjFFJ2p (ORCPT <rfc822;linux-xfs@archiver.kernel.org>); Tue, 6 Jun 2023 05:28:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237466AbjFFJ2n (ORCPT <rfc822;linux-xfs@vger.kernel.org>); Tue, 6 Jun 2023 05:28:43 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 675EE126 for <linux-xfs@vger.kernel.org>; Tue, 6 Jun 2023 02:28:38 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3562qVQQ013978; Tue, 6 Jun 2023 09:28:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=6ONOo55tdf3ee+BxrYEgkRmZAzZhTN+QPS0HdmE5hsw=; b=TJUeNc7CXMpsd+WQUG8PSOUrgRNu8bhCIU0os6UdGgLXKtIUAfMbNGWatW82XCQ8wIJF 4fI/stvsEVIhP6teHLEfNuct+fxtUWAJKwqMFCiSwkR0r/t7lT0q21wmsIYYQOVpm/7o jtQUx8/jEY0jMPPpxamVAS2ZPdz8cVnb39DZCOCgz9xkI7VycNh2+BggcFJnJwHpr2a7 2a/YHTXP2Q99AK2YFYtkyfSUVzvJN32UbEDu/obpft4gVZqg0Slq30aSEmxFb+rUiY3h Fgfitjr7PFz3nQn1pOR0t2FHdqM0e/WU/mLaTKD5cUxjMlZ2sCLZyexbz+Xo57g06gJU rw== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qyx2n4vmb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Jun 2023 09:28:35 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3569DBXO024065; Tue, 6 Jun 2023 09:28:34 GMT Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2173.outbound.protection.outlook.com [104.47.73.173]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3r0tkgvbu2-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Jun 2023 09:28:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e9sDA0pg/K5xPC+GswmpKpd54yrIH08u5XEP60T3bxtVrihmOJCzbixHhBxSpxATxuiRQCdRaLKnm3xaFFI2LHUchtiLuYh2gXcplTmANFVhZ6y2LL6PBt6gmJoIY18BTwmhRKOOHiL2CZ1FZKXgW34yUDMXXeDcgIVI4jJ/bvm1FiLyKZ6DXu600kx6V17SvibQ7JmkkDR3RCqGVSWZa7wPrTBJ5fFaNqLSuNEwNxujWBO73TlaSuJ/g1kJ/tn4sQ32CfyUjYkkBDo/icHfLehMegGpYpblHoW1VoV6fc5Gr+XzyKtgmHo/1CjDO1UKYzObc1oJiLW4TV9GT0z0Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6ONOo55tdf3ee+BxrYEgkRmZAzZhTN+QPS0HdmE5hsw=; b=bSSfAMl3B+oXTk4Cv+2aQ02bv2ARGwZXpfxr9yKaSHCGySIKmSnjKh+6svMjfcfy3uI1dSM3bHUpu5CseJvsAUybc+qGq1bU26kwazRadMxd8GS+UiAv1rHRLZ/BbD6ZMYSs/1BCfchiqTqDkGrrs+e9qYplxIodql8Tq5Z08N2HIgD9D35gqB3fcBZp8b1T9f7ezKWkQQHwOiHbY23m3tjQmuayToGJ8U77tTIULmw3cnW+fi965fiHQJGlEFwxiX8SqYIp7jt03jNfH58O4Pfnjv8dZXLGr8AaK89nn6tHWOTqTL/xqhxZ7Q/EsguUCEP4gbJ50SH71ZBues04Jg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6ONOo55tdf3ee+BxrYEgkRmZAzZhTN+QPS0HdmE5hsw=; b=ZLRMyUppdp3ooCAord31lRanat/0Y4nBjHZubRHlo1DKdkj8uhJd5B1HqqInq1zsJ6V0cfJe134SNneodDIBy3UvG+fRLjCbXCpU7xzilKISQ4aIpegnXabVgh+HMfvQXTZ2QJLKQvW+TyUBxEJQ+ucggEf9/XYzn0SNZ6t/5a4= Received: from SA1PR10MB5867.namprd10.prod.outlook.com (2603:10b6:806:22b::9) by SJ0PR10MB4781.namprd10.prod.outlook.com (2603:10b6:a03:2d0::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Tue, 6 Jun 2023 09:28:30 +0000 Received: from SA1PR10MB5867.namprd10.prod.outlook.com ([fe80::1827:534d:7d96:20f1]) by SA1PR10MB5867.namprd10.prod.outlook.com ([fe80::1827:534d:7d96:20f1%7]) with mapi id 15.20.6455.030; Tue, 6 Jun 2023 09:28:29 +0000 From: Chandan Babu R <chandan.babu@oracle.com> To: linux-xfs@vger.kernel.org Cc: Chandan Babu R <chandan.babu@oracle.com>, djwong@kernel.org, cem@kernel.org Subject: [PATCH V2 01/23] metadump: Use boolean values true/false instead of 1/0 Date: Tue, 6 Jun 2023 14:57:44 +0530 Message-Id: <20230606092806.1604491-2-chandan.babu@oracle.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230606092806.1604491-1-chandan.babu@oracle.com> References: <20230606092806.1604491-1-chandan.babu@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR06CA0006.apcprd06.prod.outlook.com (2603:1096:4:186::19) To SA1PR10MB5867.namprd10.prod.outlook.com (2603:10b6:806:22b::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA1PR10MB5867:EE_|SJ0PR10MB4781:EE_ X-MS-Office365-Filtering-Correlation-Id: 061a5f94-3b94-4c57-4be9-08db66706397 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DXmKYkDViqARVd27jJdWwOjQHqni7NrCdeNXfnmiBnX4SXpADV69qEc2xhsUrDMj2141zSV3r1YvKNJlDizi8jNz5F5sOF6WlWlS5p0cA/iv6AG+UVUSwZp2Z04UD1rOHeJQofVeBfaHWJwDf3Lz7dFvBFTFHA+qm/QwmMRlwO+wpq7nS2gZqoYDoKNuYdVFlXEOMRhQAbKwVaWX2FYp7cdVzZ22jyf8oXzXCapWWE6uEezCdRa9YIQ9MAtnhp910lDQNBUJmqE4wYtVgHJSPWgYr8gk4W2BOLNfjJMuALcBqcr4BbfWJBiX577VUBeYf+U9aQnr7nBO6s/nkeOySvFZAVs1WwyUCaI0X5JSYwI6VXEN+iqn8Om67yenVgoQvDTbCXit9WB273gXFtTIZMfw25J/fgMcC24FaajcKDrTn98dy8Xn7WpksHydaZbpDrho+tsHMvc7X39toBzFBgIJXCM9ejovEeG0A4JrO6B9Jsk+o9cHYE/PEt7WkunopvULbRJnjGVlMf+ylWR+iK97FMTl0+BIUDXHaaa3TPWPitxwBgq8K/s7gg7HT5PZ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR10MB5867.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(346002)(136003)(396003)(39860400002)(376002)(366004)(451199021)(5660300002)(8676002)(8936002)(66556008)(66476007)(66946007)(4326008)(6916009)(316002)(41300700001)(2906002)(478600001)(38100700002)(6506007)(1076003)(26005)(6512007)(86362001)(36756003)(6486002)(2616005)(186003)(83380400001)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vePtjTm1fVzb8mpl9akwNa7ZwcOq8Efz3zhof4bB+biXkfyzG1+XYllFxIoYUJ5hL8Rt6EY87oy4ndk5Mu1URBAWCQ33LfTNbsjrfxSRyxEoh1R7/JuJI/asRy7wtbUHsOtMZFsGbJvLIEl/6ITRJ/9EaIJC9BEcT/8lix8tr9LEMfnqzgMgA/rhVW4VqZX1Pj/zIQeDc+1HttRueMsmAY7xUZAkRrRinOQVTfGODLrNOnTx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G362Izn3SKIVzmwA6MiPpZvkV8tDonU3J9RKL16tbMRt7/u5f1Srlkt8YAMedybGFJZEZS7EyebE4YuL/w2p/2eMsM= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 061a5f94-3b94-4c57-4be9-08db66706397 X-MS-Exchange-CrossTenant-AuthSource: SA1PR10MB5867.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2023 09:28:29.9019 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VUWopSdlQdT14iouF1t4h2ZLxi9Ve15M0Chkh83AEn+BY+5gMPbNOK3mutHtyLzYv1mgwFI1dZlHfln2sZqE1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB4781 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-06_06,2023-06-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 suspectscore=0 spamscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306060080 X-Proofpoint-GUID: KqfMqnUeNmOD291pdJdM1MPiQG58jwp2 X-Proofpoint-ORIG-GUID: KqfMqnUeNmOD291pdJdM1MPiQG58jwp2 Precedence: bulk List-ID: <linux-xfs.vger.kernel.org> X-Mailing-List: linux-xfs@vger.kernel.org |
Series |
Metadump v2
|
expand
|
diff --git a/db/metadump.c b/db/metadump.c index 27d1df43..6bcfd5bb 100644 --- a/db/metadump.c +++ b/db/metadump.c @@ -2421,12 +2421,12 @@ process_inode( case S_IFDIR: rval = process_inode_data(dip, TYP_DIR2); if (dip->di_format == XFS_DINODE_FMT_LOCAL) - need_new_crc = 1; + need_new_crc = true; break; case S_IFLNK: rval = process_inode_data(dip, TYP_SYMLINK); if (dip->di_format == XFS_DINODE_FMT_LOCAL) - need_new_crc = 1; + need_new_crc = true; break; case S_IFREG: rval = process_inode_data(dip, TYP_DATA); @@ -2436,7 +2436,7 @@ process_inode( case S_IFBLK: case S_IFSOCK: process_dev_inode(dip); - need_new_crc = 1; + need_new_crc = true; break; default: break; @@ -2450,7 +2450,7 @@ process_inode( attr_data.remote_val_count = 0; switch (dip->di_aformat) { case XFS_DINODE_FMT_LOCAL: - need_new_crc = 1; + need_new_crc = true; if (obfuscate || zero_stale_data) process_sf_attr(dip); break; @@ -2469,7 +2469,7 @@ process_inode( done: /* Heavy handed but low cost; just do it as a catch-all. */ if (zero_stale_data) - need_new_crc = 1; + need_new_crc = true; if (crc_was_ok && need_new_crc) libxfs_dinode_calc_crc(mp, dip);