Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp487544lqo; Wed, 8 May 2024 06:12:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdNwYsbOBeZU8g6u7YG/ZCl5wecwes/miYnpbCbvdQ9WZ/HhEA0V6k2RaIbq+fb4kIoUMYHdYkluvL/+9MMuNNGjX6poQXRd0n0GWSUg== X-Google-Smtp-Source: AGHT+IEO+9/hGHRdM/8Hb2V9BZNOHRq4g+CtWU8DhS3Gc/RV3q2gm8NfEayjYk4I//ADJsMyKJ2V X-Received: by 2002:a17:902:7205:b0:1eb:4c4a:e1a0 with SMTP id d9443c01a7336-1eeb05969d5mr22834965ad.27.1715173937182; Wed, 08 May 2024 06:12:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715173937; cv=pass; d=google.com; s=arc-20160816; b=jIwnltNvslzGjvPaYUDiLwQbXj9oy1o7Ejm0kNbDeE/94au03SnCWL4IwvA7HMgVgt BwgUAQ9n63149tjlJtRBn0rVR9i5hWPK6ygNGvlQTxjkOnIYJAaYSMsvAJ48r/lIIfCY DVKvuNPqFzkgJUUvrGuD7Uw3j+rkC7LBZ5y/uyXJwkKDMaGaXJ1ys8IFtwkV1cCUmXZc vEydzLydLffR5tKT33h2XcZHDXAgTgnbdAysDThXSE7CgXHidsUoFa20vf9XFtrJA3cz +SmV1OnJHeF+AjCToVvehwPnx4As7e8iwch5vRwreZ+y7+vA06BUC1HO8EJEwWHlJLoa EaKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=BBtqbE2VMLphPBFm/LhzWGkUOx+2nn6QPswlO4Ewt38=; fh=jsJwwuYTy3Q3bk3qROGtmq2W5LGrWtFhrJYiKtfg4qQ=; b=I1uikSWXXBhtgzRLV5Js2eCXcDCRhvAve/r7/zlo9XydK94EMukYrleVfHQ5RXQOj4 n5f90np5JKjJfvbQpvL4JTw+9DN6cnxZi1LRVSn/csfxOF1wpAvZx/30U5YT+XwW8bJU NntdfMpsSyofjsCmT/CZEL7zLjPm5WpNZaNf6iKGpZ2w0I5ucjXYCYfkyn9T6P90WQzw LeYDy7FVDm6B8jCzEO5kGNzP8ruyVhvMipxIJttjggeJQVHZZcLxnWu2a7h3z+i47miW /3ixr+VThOW7cNCyqLTZQ73dCBkHX7cqGFV982hi2E8p9W2gTvfJFuxT3bWJ0dkbMIGf 5g9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zli46Lmz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-173274-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l9-20020a170903120900b001ec04925643si12833123plh.344.2024.05.08.06.12.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 06:12:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173274-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zli46Lmz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-173274-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9F5D6285BC3 for ; Wed, 8 May 2024 13:12:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2460F6BB4C; Wed, 8 May 2024 13:12:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Zli46Lmz" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48DBF55E58 for ; Wed, 8 May 2024 13:12:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715173930; cv=none; b=JaKnBnhX70yhuyG/+XwtchAiEzhmftNJCB7ArpqZi5oiKYiZ++VMd6RYtNwQNZIJIwy5riOUUB7bpldHEKyKinpLXKsTk/20r5rQ7bu3AVdROwDWeVtg1tC541lJ/sZAwcKb6wofWmD/Sif8FxuFn2SYXf/ux83LtfEu20uHT5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715173930; c=relaxed/simple; bh=B3TgV7Y3rTI5Noe3tkOwqLHVTgwR6y+7ORa3V8o6LiE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rFbjsqZEcdclAhI2nDAB8L/1l2SoIXMmicalBG8umMl8vn1/ya0dIbGdgnHtlORor7++wl34GCVj/r5+MFg9s2kTlxU398mRRUobFWuRLKgVzw8k2EzDge3m9iLAULak5qhJIGJWGAUAJxpFKzL2hF6zUMjJRJfd9DvomNiESSM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Zli46Lmz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2004C113CC; Wed, 8 May 2024 13:12:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715173929; bh=B3TgV7Y3rTI5Noe3tkOwqLHVTgwR6y+7ORa3V8o6LiE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Zli46LmzOgx3rEIiaYn6jn7kCfP0tbqiDDeP6vtA4+26SLGK5dLwu1hROw3mYGJ0f ZRMgeugngdrCNOA6oyS92bQAhpfT499itVEHiXvg+KkQeqLSa7dO3UPgvnVVamFa4U UKZ6/9A6gddDJHKet34th+2MyHYNbMUjYz/s+r4YeZpFTU7mZc4FEZlG7w2CHkNEef Uzcl5LYbZ+qQxPFuXOUgaCVIwtRn4v8Z6ieEtJt05LK0dDpIpcaIOeynKPmWbDFUJP x8TYG/YVTUX+keDYnNIS2SBjvGsQNH1eCxysaCR53TRQeHIXSi3ZjkwEb/m/5+t6lJ 2K0KorBaXLr5A== Message-ID: <39cc1370-a80b-427d-86e7-6903ed1ce868@kernel.org> Date: Wed, 8 May 2024 21:12:06 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] erofs: Zstandard compression support To: Gao Xiang , linux-erofs@lists.ozlabs.org Cc: LKML References: <20240508090346.2992116-1-hsiangkao@linux.alibaba.com> Content-Language: en-US From: Chao Yu In-Reply-To: <20240508090346.2992116-1-hsiangkao@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/5/8 17:03, Gao Xiang wrote: > Add Zstandard compression as the 4th supported algorithm since it > becomes more popular now and some end users have asked this for > quite a while [1][2]. > > Each EROFS physical cluster contains only one valid standard > Zstandard frame as described in [3] so that decompression can be > performed on a per-pcluster basis independently. > > Currently, it just leverages multi-call stream decompression APIs with > internal sliding window buffers. One-shot or bufferless decompression > could be implemented later for even better performance if needed. > > [1] https://github.com/erofs/erofs-utils/issues/6 > [2] https://lore.kernel.org/r/Y08h+z6CZdnS1XBm@B-P7TQMD6M-0146.lan > [3] https://www.rfc-editor.org/rfc/rfc8478.txt > Signed-off-by: Gao Xiang Acked-by: Chao Yu Thanks,