From nobody Wed Feb 11 02:24:40 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63642C88CB2 for ; Mon, 12 Jun 2023 15:17:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235001AbjFLPR3 (ORCPT ); Mon, 12 Jun 2023 11:17:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234811AbjFLPR0 (ORCPT ); Mon, 12 Jun 2023 11:17:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 116B7E69 for ; Mon, 12 Jun 2023 08:17:16 -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 39E5462889 for ; Mon, 12 Jun 2023 15:17:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B98EC4339B; Mon, 12 Jun 2023 15:17:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686583027; bh=zvMmSk16NAGIeLq/EL3xVdNol4rQeFRyAw2A01ZY1Os=; h=Date:From:To:Subject:References:In-Reply-To:From; b=IhQTGNZ8O8RGV/cM7SpgNfZL/3shSHAvFLxU3wHUn9zvhTysxcMBk+gE/rhOd1t6y oso5GzBlEQluyifZFXhwB1ykK6SHldGCi/ryo0ah/xLpcPcRC941K1PHrk9ZTygSby EmU/vi35gJm0jRwqwV9fQDIiCA+gC/yOvhsqB0YtWwP+vQLsMdBbn4zWZpwxhjCAo5 YcgN8H+PJxyk3n5LEnAusCYO4WOn6ipsxXD7rCkk7x1+ZXCIuWYmkLTmxR9nG74flX mosppfyQOcdnT3H/75VJ3TC6GGS8XVDn0yOK2R4ViINoNEE9QUxpfUOI6ONf25PoxZ Cykv5GXwfuwlw== Date: Mon, 12 Jun 2023 08:17:05 -0700 From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH] f2fs: set zstd default compression level to ZSTD_CLEVEL_DEFAULT Message-ID: References: <20230607162954.2651657-1-jaegeuk@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230607162954.2651657-1-jaegeuk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" ZSTD does not support compress_level=3D0. The commit d7ffafc99c42 ("f2fs: add sanity compress level check for compres= sed file") started to complain this. Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu --- Change log from v1: - use default macro 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..ce3b628b5072 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 =3D 4; =20 if (strlen(str) =3D=3D len) { - F2FS_OPTION(sbi).compress_level =3D 0; + F2FS_OPTION(sbi).compress_level =3D ZSTD_CLEVEL_DEFAULT; return 0; } =20 --=20 2.41.0.162.gfafddb0af9-goog