From patchwork Thu Jan 12 13:34:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 42430 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3883562wrt; Thu, 12 Jan 2023 05:37:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXvFyW0LcUim77nxZnMLGgTlj29Kc9VYW5odtLnOngMQItDvakIMrJbkL/a2S1DrpmbEwwgx X-Received: by 2002:a17:906:9c96:b0:7c1:1c5:c7cd with SMTP id fj22-20020a1709069c9600b007c101c5c7cdmr70523967ejc.5.1673530673674; Thu, 12 Jan 2023 05:37:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673530673; cv=pass; d=google.com; s=arc-20160816; b=NbWI9aecHDR8ElpWl+rQcJHKppJtwIJIWf6jT7L+wBwsUMxvFAg/UimNdi6+qO8ihw U+AFqreUAMg7XQ+K+FDXXP+rp35yxua0bXr26yH28MoAQFWzktkiuMAwfZMh+zxD+smi zpEVjDc8pZtW+TI/0PIyhUaVmZ8tIDm1OXaGxpvc98mLGsC7dZKZxadiYt20oeyhO40T P4MbqIq21bYGr38004QuxvW6id+qIO4AsvvSJyKxl/2IfdzIpGhlE4GekQ/jbeMqaU9U +1kqXPFDDJb/qVmi9WLrTzHNy4+IAvUZFF34/SORj1cEjG/jF5iwWdtnJ/H/N5jgmicd rZoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=3N4McwBBwJ0Ldq/+E3XFv5A9Voxj2W4Wxj5SJvVUCxw=; b=DSGjgTs23rW5vqQTkRX/ewLmAFnrDAIKfW0X1xEtxrJa6uZ1yzJoTp+b+V+XpCsLXH 8P06VwxZKACj417a3b+2gccexCx1D2ecw3a6b6/NGOjzr4Uf0ihZLiFWMuqS6cUo9Ln8 zYVcgH5PJ6XxegG8Fqb64Uc+pWXMIBZw/yfDpQT9QdSetdiiD4qp3TiiJAmX9rdfug3H cVU35VAnhgIFoGR6FdKl2jcxZgvAVM4Z8/QzfQG3QQdSOtYmzpXvG//V/45qC3EYrQRt KESAXtEmGrLcYpWlpDIpR/XCzxxFPecswwO2LrQ4q/14IdMi55OhDK7mxQR2TRyisyFg Xewg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=lYycNaoo; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg29-20020a170907971d00b007c0d428795dsi19903626ejc.191.2023.01.12.05.37.30; Thu, 12 Jan 2023 05:37:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=lYycNaoo; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231732AbjALNfH (ORCPT + 99 others); Thu, 12 Jan 2023 08:35:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231621AbjALNfD (ORCPT ); Thu, 12 Jan 2023 08:35:03 -0500 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2115.outbound.protection.outlook.com [40.107.117.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91678140D2 for ; Thu, 12 Jan 2023 05:35:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KvN1nBL+dp4hTSC5Vnvv/ZRDGBs6TtWZYS5jWo2P2Qod4IqXXmgxNeYY7UAhA7ZA02Sp1tcECglEVyivFDIxzRJv8ACSrAdUYlrbToEOjr/JPV1lDrj3ewWn6o66hZtb1/d5195i0C6nK/FqfTaqsL0KVOPemWgfMrNQVoDdnwum5K1p1VAPczyZw/VQz68RmAlDmTbruu2iiIgAnH7MLzys9nX9Bhq4N6bqRHWG8Nfpgfl04Zmc0tiV3ftNG88OhfAMYOST472HDfClUobO82tUdO2eivpundgMfY6ZtZzvHA6AP8JY2l82Ks0wQoF6BMnr5y+kzeGsv2Wt6rFdUw== 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=3N4McwBBwJ0Ldq/+E3XFv5A9Voxj2W4Wxj5SJvVUCxw=; b=ZULkDeR5qOJHTlC6d9hdW/zs1lABqVZ3yLillmerl/zr0lRmeUfcRLQ/CR0ERTv7kt3h3DcJmrxNuQ8Iz2AIOXPkqz5FRngVbS+hUGrBdeoFTs6eqmSkPEjEfduE4b4rf+Q5+W4sYg32zU+s5NrYLXoHKm2pnumHKYjiIIe5PR/kmlBlM55Vx8mY1Y7hbiPeBzbF3PrDn7Ys1qcvYAhc3ZxVpo9H76L9peiPB0fpsun/c1KJqxRfwv0evZHeR4gOm7XzvCBFCZYLFS5VDlxhu7huBfgHegCl07t6zBmkOeWHAXk1qSQT52N8zyv6eiHAPmqcSSqOelwzw4+1Jc8L0g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3N4McwBBwJ0Ldq/+E3XFv5A9Voxj2W4Wxj5SJvVUCxw=; b=lYycNaoo460Z1eixrgdlHrlkyZqMsuTyNngOkc7q00ilAUrRgryERMJpz0qTMYRuH4bN3Hxh0SlMraDRu5DV4ElTsvbSF9mX2tJxIvKAbCiKTYIPeyw9w00ScR3XfZqL3oSo0blWDJEJm57bpOBL4giuyBrP/vka7cIdt3GCl49ooEGYBxmDi9Vn+O/rdEAqbS6Psz3NebSXrI8Samx9PL6g1fbJ0EtKjEvKGFKQ/byxCuZJJQ14Q717BTRYui7AReJ128aSSzkXNngGn73aBuVwSJsh3iAbXsbsCKnpSsqmZ4iV+Oji6OwYzcH94wqZeJpOIFgbMFmVmFSGSp4POg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEZPR06MB5072.apcprd06.prod.outlook.com (2603:1096:101:38::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Thu, 12 Jan 2023 13:34:57 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::3e52:d08c:ecf4:d572]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::3e52:d08c:ecf4:d572%5]) with mapi id 15.20.6002.012; Thu, 12 Jan 2023 13:34:57 +0000 From: Yangtao Li To: jaegeuk@kernel.org, chao@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Yangtao Li Subject: [PATCH 1/3] f2fs: clarify compress level bit offset Date: Thu, 12 Jan 2023 21:34:43 +0800 Message-Id: <20230112133443.16713-1-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 X-ClientProxiedBy: SI1PR02CA0027.apcprd02.prod.outlook.com (2603:1096:4:1f4::18) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5072:EE_ X-MS-Office365-Filtering-Correlation-Id: 6bb7626b-d84e-4f6c-50e1-08daf4a1cbba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ck69Y/AaFtOjv3GRmblzQpZZmQpKlmn1ofr947F+WDyfnQYUmQ0DOeavRZAc2AOMtVin5BZmLsGKvYQhV1JRJHoRQNBLHKFs9hyBvdNw5YOhGXYFnj0SkF1rvxR1aeoo+X9V3eeDrQgYkhX6Djm4PZw2kzmghECDrND6z8K7gm2g9lGL4dHTgpsx6JJayF827Ei0YqivXxOnrK+Xm7kSlEzdqf0pAvTJuuPjUd4FtqSg50pxj7/apZOZQJNxOzg/YFnmV2D6DCbtKjB78x1rhevumAviuJhEqPx2qGuJakbNIF2In7NMuwNr5iYX8K+1izjodNZE2yW5Vy7kUHtewkAikLmEt1v6hbvHxzufAzDrDf/3CF0B0vFZzL7gKPo08IJQpYAO8JTfEALa4GuXFuymONFp04aIZ9fHmgp8gxsExq/OGXIg9RV3pN6UQz7To4jvnTBDNrq5KrZxdZG8FO5qhHC6gl+WfeHgUFfwwlDl/htVh6ejmYq271QYKYBAbinZdBDbQ6greNlQZ9kWPHzPBWBHCrrk56SBga9PtuiKTUksZlKHudMIh1MEv6Bi+ZKCqGc/nTRqFdEFzInw1WNKpHpCn+j7yd+p0K4hrVhwQytPnDIdEes/qp01U3dZo833izAj3ySABXujNaNj3PendxV9VUCU8TnApXlz/v6VPLSXXNZlxWFL0W27cH3p+nV7jannCagdshpn+J00CA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(136003)(366004)(376002)(346002)(39860400002)(451199015)(107886003)(6666004)(478600001)(6506007)(6486002)(86362001)(2616005)(38100700002)(6512007)(186003)(52116002)(38350700002)(36756003)(83380400001)(26005)(1076003)(66946007)(8676002)(8936002)(66476007)(4326008)(66556008)(5660300002)(316002)(41300700001)(4744005)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4gS8VeUaxomS43b7xGK7DKBgm1WYmumFXdaZQ/ynaZ7KpON8ZiVGDMywo53bE45Cg1aJXrq7vyNWz2yNhI+PyB/8MpfSo3fY1rmJSphdt2cTXqWCme24hQTtFNzElBnK03svavEw5j5E9onqt9XYYsomOvSyGNcvFZ16UhjPLxFcngtNqVeZ3og5otQgKiOnPWvetiHRHguZRaSGbU4eEpEZR8HuBM6+KBE1NZE+CNZrTrhNRgePBcE98GPkpgb2199lNBJ78k7B8PeKBs0JEXBAwrOQMY5BEKDhRQnFbfDP0Q0IxFUBa5iEYmFwXykS0voBzjA1ygKMzgd6u3I/0NmFK1fNsqstpkJSIffmBVnJJU/fVr4IKh1NdJvy/Urolw9HQ0smuJNHyGlDagxlGC70+AKjBPmjbvFuQAuUwUAinmFiDyIMSV3WyrTqmwXdigB7EASNwTrAmhqsfSKG3z+1gBErjxH+x24aYgd/lqYkop06sJUzyOV4waaAOh6nkJSvQdY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3Ldl6B1W4oIcHurN X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6bb7626b-d84e-4f6c-50e1-08daf4a1cbba X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2023 13:34:57.3587 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zPsJbmsM8YOnS46uJ8CYs58XJnectd30NnljRCUWcuSodbgI5nmmxZAD/slvVec6lFzUOe/lap98/go96r/x5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5072 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754824099320704635?= X-GMAIL-MSGID: =?utf-8?q?1754824099320704635?= commit 3fde13f817e2 ("f2fs: compress: support compress level") introduce compress level, which macro(COMPRESS_LEVEL_OFFSET) is 8, But use wrong comment about compress level. Let's fix it. Signed-off-by: Yangtao Li Reviewed-by: Chao Yu --- include/linux/f2fs_fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h index ee0d75d9a302..1701f25117ea 100644 --- a/include/linux/f2fs_fs.h +++ b/include/linux/f2fs_fs.h @@ -315,7 +315,7 @@ struct f2fs_inode { __u8 i_log_cluster_size; /* log of cluster size */ __le16 i_compress_flag; /* compress flag */ /* 0 bit: chksum flag - * [10,15] bits: compress level + * [8,15] bits: compress level */ __le32 i_extra_end[0]; /* for attribute size calculation */ } __packed;