Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp749026qtx; Thu, 17 Nov 2022 07:29:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf4zuZzUaCfgGx6hd3yIutePtpV5spd8tXPkiQUrL71aElyvYjq4E/mN0pdi1RBRrT6AKNGu X-Received: by 2002:aa7:c859:0:b0:461:17e9:4ea3 with SMTP id g25-20020aa7c859000000b0046117e94ea3mr2641123edt.49.1668698977977; Thu, 17 Nov 2022 07:29:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668698977; cv=pass; d=google.com; s=arc-20160816; b=SltqD9LpT8lRhvo8EwCySBVZFALcDODq2ZjAX93fet9f/Uzc1rP0KSqD1NqVXG3757 0ThGOkoiCqR7txszD7VHcRyM5wZFRDVtOumJ1K7nJk0eJODBP/kU+B3Hqh3uF/RaawGO wu069+67UcZYbDm9Od0a6iZ8SX3WnZDL7oCm/Y8LkLQ8cGSq9baS7oI78wmOy+YqC6I9 PCEUcmJkzgmwgcAw8tOlIXU+UafziMVU98lIf+j7ljnniIn6/P3e4VmFw5VZBk4q+y4N VHl/rPuB1dJNBctsb3M9gyEjQOyPQHvEGT/yiKvaBGVlt9qCxORh5qlrpB1UvpTM20vL m3pA== 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=wjoDJ5jcjc030Rw2+5AV0rnmiqmEAgLgJYpbTT+k7HU=; b=IQASdhcEUUc8Povekjo3ebTkX7MfhiS8K0sZVuDeVUc/xiyv/4GiXBkCOeL7NHad/Y twCownFNo0jYsDv0J5xIhWYfk2isOHNvzj0SiJor4xehoFt9w6iLLvMNy6OPZ2ENTejH PYlLLptnwK/j5eGI9Zr6OJkV2i9QmjdziWYaMVvZxA7YL5ApriGY3YbRgIny7FuhuHIA HQ9EaXB01GJ4YMQM5JoWZFfaM9uS8qaFqbTI54i61gZKy/3BT7F3abMfIW2VuE823Rlp XQ7+EFPCjOn7tNW7pvY+uliw9nn7KBNko7nE0UpmCur7m2vOzP3UbnNDTgGio88xwHjJ 2zZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oppo.com header.s=selector1 header.b=J8kygpCT; arc=pass (i=1 spf=pass spfdomain=oppo.com dkim=pass dkdomain=oppo.com dmarc=pass fromdomain=oppo.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=oppo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg4-20020a1709072cc400b00787abcb1ce0si911604ejc.679.2022.11.17.07.29.15; Thu, 17 Nov 2022 07:29:37 -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=@oppo.com header.s=selector1 header.b=J8kygpCT; arc=pass (i=1 spf=pass spfdomain=oppo.com dkim=pass dkdomain=oppo.com dmarc=pass fromdomain=oppo.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=oppo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240587AbiKQPQv (ORCPT + 94 others); Thu, 17 Nov 2022 10:16:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240563AbiKQPQg (ORCPT ); Thu, 17 Nov 2022 10:16:36 -0500 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2061c.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::61c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0185E8D48D for ; Thu, 17 Nov 2022 07:11:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A5TtG4lSCk66hWAeCIOvJ6dSeVqz107qDV+0LF9Z03P368hKt9+3XIkOVs8/T5jJfxb4EtDopYJdy4JgzEEue8KwPhNKSkBM5rBGQmPVTceOiNsJJ6zNvYLECE2bH1+hzgrQCBH1AADmoMraxB++ZOAKpeuY6vsqJZLZ2pQIM3+yaNzPM6YqBWd+nPlkeMFgRiwZA52evhmTaEnoQhaoycdnGDo+ZJn1VHizutPqaPpe68ma0/8US5JVp2c3/UdkMcLDAH6RgYHVc6GwNFidoUR67+3db7qCf9n3YxvAytWB3qKc6CxRKLc+E+awGZA++z7CqiatBMGstr4RHWMIfw== 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=wjoDJ5jcjc030Rw2+5AV0rnmiqmEAgLgJYpbTT+k7HU=; b=TVg6VNpBAfkoyDtEFgDiqPkxCopBZ/KTOYdTdbZA7aSQypfVpqhjWo9BJn2rSwNeZZteH6c7WXLg4Qolkn50k03DTTGpFsOqVSiVclNtopI50xVw6UAGc+wEhg+6De3QMGkCFuCDt/VO7bgUwJ7NsdLCNGy2ymaRIKpUk3lOtlaDlz0EMj2KpKkJ3uUj9UFMsjRdyMrQksvfltipISzD0LHSaFvW2u8SAfluo81QC5y2wkaTMOAU9e54zLyO2YeuoccqrG7V9E+/EfsskuSEWysX8hppecU82IV+aGMHzcAXlXZpPMgD57ljq3nLKWaai5LLTiHH5CFV1Yxc3bP0rg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oppo.com; dmarc=pass action=none header.from=oppo.com; dkim=pass header.d=oppo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oppo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wjoDJ5jcjc030Rw2+5AV0rnmiqmEAgLgJYpbTT+k7HU=; b=J8kygpCTLwk3p6N4LaUlnzn+lCihUQxBAu5ymJYJDHwaF/2UE/W00AmaCcWBS2KyrDbr0D+lHicGUBSSaD6zhwzy+mVvS87MLwJOgqJIFxr+cPHzVb3678kuNx279w0ZMLu6oJj6nmMlaO0dGy+CZnf7AWMhtm6KjkJnOjTunhg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oppo.com; Received: from SI2PR02MB5148.apcprd02.prod.outlook.com (2603:1096:4:153::6) by PUZPR02MB6305.apcprd02.prod.outlook.com (2603:1096:301:fb::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.16; Thu, 17 Nov 2022 15:11:18 +0000 Received: from SI2PR02MB5148.apcprd02.prod.outlook.com ([fe80::2954:8e56:dcd1:452c]) by SI2PR02MB5148.apcprd02.prod.outlook.com ([fe80::2954:8e56:dcd1:452c%3]) with mapi id 15.20.5813.019; Thu, 17 Nov 2022 15:11:18 +0000 From: Sheng Yong To: jaegeuk@kernel.org, chao@kernel.org Cc: terrelln@fb.com, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Sheng Yong Subject: [PATCH] f2fs: set zstd compress level correctly Date: Thu, 17 Nov 2022 23:10:54 +0800 Message-Id: <20221117151054.2232946-1-shengyong@oppo.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0198.apcprd04.prod.outlook.com (2603:1096:4:14::36) To SI2PR02MB5148.apcprd02.prod.outlook.com (2603:1096:4:153::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SI2PR02MB5148:EE_|PUZPR02MB6305:EE_ X-MS-Office365-Filtering-Correlation-Id: 04579d50-2210-40fc-d8ce-08dac8adf92b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iKU4o39gZNSpRoDAcRxvKpIS/XC+kR9XRn/1anA+yQ9vNQzVYzRFKF7weB7wMQX96dabHS8pG6oF23y9C4R0c/9vuq5xwXuVLr6A3mCIlu1km0x3mGLYDlqm3GlBpKA4I6tFUOyQpZpBXItbA4ZMTRu/9zlfeXeWwCu0X1ttuTttNy7UfxdumA9iv6ivLvXvyuL8o+aGKp6TwXhqLl5zMLxdBrYT+CeqXN6SUvglck1DEPfC2PzEkV0L4QAO944NIcyVyOcXjnwJ82iFLIffXYJSEIk0jsaPTE1WcgLRKsvJnBzbWrhz3Kf5UsKWuTd9dxfXcv2OOMSxgNaYRZRK5BQsr7qD4Ki05W5MuNe+6wuiCBby81mFxxCqQc2cKV53n5w9XLEUDwSdf2Hyd0seXZD6RdmFvE8jB81gtjJBB7agh+QVWb2Pr/yE/YjEnrCLLq5hAI+7RLpj7E7YzWLZfdfwbzDwHg6PVPqaSBwrqAFn6TbX1d0JGFCy4xVlkTTbr1Py4vzHPkuS7+uTXBDX3bxKZW0MV/j5uMuWuMajWOYj71adQAy9WQ7eV+l9FXy9fz2peVX0hVw58nn4hgIY2MmYHdk58B7pjtUZPh1t2+tc9Idl31BJVfuejx6g7xLuFFF+0RGJXDZj6HB0jpMfKdOaWzR73WdmnRVJYJLvqB3v4vCRrbqqIsdYlvCCOTCF X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SI2PR02MB5148.apcprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(376002)(346002)(366004)(136003)(396003)(451199015)(2906002)(6506007)(66476007)(66556008)(38350700002)(2616005)(38100700002)(41300700001)(316002)(86362001)(8676002)(1076003)(8936002)(186003)(4326008)(36756003)(4744005)(5660300002)(52116002)(6666004)(6512007)(26005)(66946007)(478600001)(6486002)(83380400001)(107886003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?cpHix3ssTUTYbbZrtRRW9n+1IVApBxp+ltqWB7ezVRvnoXA01fMwvgiwlX/u?= =?us-ascii?Q?s66HwA3XY4czUNDfQIcAGGYuisKuDbNAPvxPf2Z46jH18M7zA4ngL78nYWa2?= =?us-ascii?Q?zArkYrj6UiDW18BW7Z5oyqcOkUT9u7S0vrfxoPN3kTidTEsWlAYAd7Dt8LpZ?= =?us-ascii?Q?bF1f3y2oyAke/vHQARi2fZgEmZHZTpImXS2Ijik2dW0SpN8Mgjwsay51S9Xe?= =?us-ascii?Q?fQ03h7BgUHNYQAHH5M42a3J+2qEbkyoZhvvxi+Ef0DQZllAFrnXuNltjg7Sg?= =?us-ascii?Q?gKMELJii1ZqmQCvhJQsRdFQJROJb8JZD2o3eNHAxKXn7FWvfnbAYwIVj9x92?= =?us-ascii?Q?cZ4t1etyXOKChMgLL9YCQNr2EfRq74IKiZc4m1s0gyhxb33UTL/rCPHeijuh?= =?us-ascii?Q?ryKXwA2sHOqR/oxoqy5MGDs15x5KQO6seZSHWAkbCs/MhjblWEgDs7fh8opi?= =?us-ascii?Q?cY76qlv77miB+DrqUKu2RZw1Trj1YSB6kug3iiEPrP3MriD/8hnumepLqNrY?= =?us-ascii?Q?hVNhWgxdXvcpN2w9+rGh+XYlgj2ZP94S8pSRbeuZCf+5YuomzKRzo1I3RrbG?= =?us-ascii?Q?zWEl1UHjFOgkx2bl8VftKv9AUh9LFgS+UHiIye1SxCT3A0LAlc+RHgWt3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9h7EDVlDv+J/AreiL5clp99oEaV3VVXcUag1Y8TY?= =?us-ascii?Q?XVtju7zs4HcP2+7LKDcoaQbLQmtCRVCcCy12gJF6?= X-OriginatorOrg: oppo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04579d50-2210-40fc-d8ce-08dac8adf92b X-MS-Exchange-CrossTenant-AuthSource: SI2PR02MB5148.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2022 15:11:18.6015 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f1905eb1-c353-41c5-9516-62b4a54b5ee6 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ai+9fSNOmiPCdYt+39jZb36ZQjSiMhDEURwJ38ebe90PlfO2fHfj8sMJSKi8EfjdJ9fN9CIfrUoPcZ9+yMtVfA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR02MB6305 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Fixes: cf30f6a5f0c6 ("lib: zstd: Add kernel-specific API") Signed-off-by: Sheng Yong --- fs/f2fs/compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index d315c2de136f2..74d3f2d2271f3 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -346,7 +346,7 @@ static int zstd_init_compress_ctx(struct compress_ctx *cc) if (!level) level = F2FS_ZSTD_DEFAULT_CLEVEL; - params = zstd_get_params(F2FS_ZSTD_DEFAULT_CLEVEL, cc->rlen); + params = zstd_get_params(level, cc->rlen); workspace_size = zstd_cstream_workspace_bound(¶ms.cParams); workspace = f2fs_kvmalloc(F2FS_I_SB(cc->inode), -- 2.25.1