From patchwork Wed Jun 7 16:29:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaegeuk Kim X-Patchwork-Id: 13270955 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 86AB8C7EE23 for ; Wed, 7 Jun 2023 16:30:09 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1q6w2w-0005mg-Dk; Wed, 07 Jun 2023 16:30:07 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1q6w2v-0005ma-9r for linux-f2fs-devel@lists.sourceforge.net; Wed, 07 Jun 2023 16:30:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XtYWopUfUV3pjUxzKYdcP2P01GlJicaI6mldYrZ0TNM=; b=mOXSXBC0qwVd3nIvmz63QpUJVK woEio3QupeoZp5+CDDWU3vHpwo94TH6IW8vhfVnhQziR7XosUGZ6apw8oiqKN1MsBu3OcnZndQ5TE TT7+O/atndb4pPlakhBlDhO97yYqQ7IrR4wZ3x5k9H9RZWOVD9IOb6MTQNluybW3D99o=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=XtYWopUfUV3pjUxzKYdcP2P01GlJicaI6mldYrZ0TNM=; b=R BdeNcgHUZq1jZB9OMW8NuRgAfAQb/wZWRoceoeRXwgVTHFFIToct30td3Ztm5Yv27ISogvN/Gg9UC pj2Uwly1T/TxomHwNbnmXMel6Vo8wlHBbOU6W1ijdCEe3ED/b9xyLFUVs9VAr1qIRcM2vX/ymVKfM pkjlhkjUdvrvmX7M=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1q6w2t-00Dt9c-Fg for linux-f2fs-devel@lists.sourceforge.net; Wed, 07 Jun 2023 16:30:06 +0000 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 63FC26416D 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 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 X-Headers-End: 1q6w2t-00Dt9c-Fg Subject: [f2fs-dev] [PATCH] f2fs: set zstd default compression level to 3 X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jaegeuk Kim Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net 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; }