Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1048709rwd; Wed, 7 Jun 2023 10:13:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ncbJJENiarDUul/NyUqG2Bi/PwMtbrFn0bVzvHDPHBhXCGUO1EBI1LH7KkMJrZ3kX0Y4H X-Received: by 2002:a17:902:d2c4:b0:1ae:622c:e745 with SMTP id n4-20020a170902d2c400b001ae622ce745mr7571566plc.1.1686157984194; Wed, 07 Jun 2023 10:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686157984; cv=none; d=google.com; s=arc-20160816; b=snoHlACI3q+vTcpWWdJSh+nEgbziadiZtF/pbq0i0qfckQjMp2P3/eLHWh0u0/BHAu 0uELwsAlVYM4sfJNQIkio7xNunoNUa2qZTHHuqPZZhN760fyhJAJs9XhiLqpdUrC0P13 5vR9xiUysgFRw4vO01xGd1sOiD7uJEkWcK2ffbJTkqC+JuRzlMU2+kr3/kQmoljcw6bW Q6F7o9tAvUHfgud+Nj1FiY+eTsaJ25vwG1xIQwe6l8TQAQLlREDqO6iA0TK6XJwovFd2 AITAhWouAfVO5nrOvCgb/V04b3scRr45Gj4GWb1/xHPJh8PqPfKKuV3vtnSqbMVZaG38 FK8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=XtYWopUfUV3pjUxzKYdcP2P01GlJicaI6mldYrZ0TNM=; b=T52GOvwtZbdAq2rdF+TAGrHj5/UbOhzQIryZdzb9seDajTvXBlzoz158wxFVGYEOIq vBi3syUs1K5OjM6rPPnLIqcGH223dkObP6+UPnCOgSW7yZ0TEz6JaGJwylOaVEN56WKV dm1fEE9dz6trx0vR5urolTTqX9FDj/4iPCdrHv+Z/dOB2CHU5dlC0aus1N42nwNzFbRP Y7+bD2m30kYA8uV1uNl+glSOgEi95e66SKSpnXYnU4QFUf0mCLTRd/a+WfYKecKWfztG iDRjq9mBzgqVa5If5TV6JlK3ol0E90yJoERelvdDGBxXwhhQeHA7cU3CEOievN3IPfgD ZANA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F44bcrz7; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a656a8f000000b00534878ba944si9245923pgu.336.2023.06.07.10.12.47; Wed, 07 Jun 2023 10:13:04 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=F44bcrz7; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231824AbjFGQae (ORCPT + 99 others); Wed, 7 Jun 2023 12:30:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232170AbjFGQa2 (ORCPT ); Wed, 7 Jun 2023 12:30:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2CFB2114 for ; Wed, 7 Jun 2023 09:29:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 63B0E6416A for ; Wed, 7 Jun 2023 16:29:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B61A6C433A0; Wed, 7 Jun 2023 16:29:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686155395; bh=rAXf1ZqsGnObsvjcYvsmTKbEZgNJCNBl1IG2c3vyIFw=; h=From:To:Cc:Subject:Date:From; b=F44bcrz7p0Q3Fonp/7x2+bCCOA5CjLELo3I7hay4Bfwg0htX0PWV89tvwlUS/XopD AcV0rC+4DVFa6SiUrmmiiKgWYWeRfq4gsy1ZO/x9c0EyZSVuUhtecpLX/obu7Vz7OH YGY8xIyCvpxmsLkPdYpWkwjPL8ZC9yyrweCKcM+0LW6pqM8K223ZCJ7DnCr8NRUWwZ cUePkopnKDmMAeT1Ik3Z3mMXsLmszn8h/Q7KMBIAsI7XPXg7NT1WsEe+lEtHZddTMi WLf9CYwK2lQFwPTaOcbQdEX9pN0xKD/RaocJxysScC6CvxrTElxcffwJUw3O6CTuTc aAWXw9ZWODmZw== From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim Subject: [PATCH] f2fs: set zstd default compression level to 3 Date: Wed, 7 Jun 2023 09:29:54 -0700 Message-ID: <20230607162954.2651657-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.41.0.rc0.172.g3f132b7071-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 ZSTD does not support compress_level=0. The commit d7ffafc99c42 ("f2fs: add sanity compress level check for compressed file") revealed the issue. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 8fd23caa1ed9..1fb8d4f27a40 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -627,7 +627,7 @@ static int f2fs_set_zstd_level(struct f2fs_sb_info *sbi, const char *str) int len = 4; if (strlen(str) == len) { - F2FS_OPTION(sbi).compress_level = 0; + F2FS_OPTION(sbi).compress_level = 3; return 0; } -- 2.41.0.rc0.172.g3f132b7071-goog