From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66D9EC4338F for ; Wed, 18 Aug 2021 14:11:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5160A61076 for ; Wed, 18 Aug 2021 14:11:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238670AbhHROMM (ORCPT ); Wed, 18 Aug 2021 10:12:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:55822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238113AbhHROMK (ORCPT ); Wed, 18 Aug 2021 10:12:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E7EFC610A7; Wed, 18 Aug 2021 14:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629295896; bh=Gz6CCkSmBpJBb//SixnJg3yiMy1j4X3NG4qAXGzi90I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=TbR8t2PxXP85BxY8iJ+zv5suFPI9j1kMGjLSwWK9VduVeQFuRlKImvkjsPw08I2Nc Yfwo/E+C8mIZFpLimYl7JWnNbJIKPj3UYGQcN4zK5+j6TpobFdyG50rzAqJ3F8kvOh Vg0ZUSkB2qJchlBANicVCPgJo+cZQODlryiAxmDwK2821L9era9oxHjI+3jdSBye+z g8NeXkTMfgfy/bWuQqxBP1ulrBHvhKEZIegyCQBP7dHEb4gLVKRR+OrTjiVcajhJlC bM80Z0PUcRBMjZVx1yzH7BmffNGMgbA99rx4/we9EnGgqrOyWHoZZqxt54Dr72eCCS 81c1dPppV5HyA== Subject: Re: [PATCH v1.1 1/2] erofs: add support for the full decompressed length To: Gao Xiang , linux-erofs@lists.ozlabs.org Cc: LKML , Huang Jianan , Lasse Collin , nl6720 References: <20210813052931.203280-2-hsiangkao@linux.alibaba.com> <20210814152727.78451-1-hsiangkao@linux.alibaba.com> From: Chao Yu Message-ID: Date: Wed, 18 Aug 2021 22:11:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210814152727.78451-1-hsiangkao@linux.alibaba.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/8/14 23:27, Gao Xiang wrote: > Previously, there is no need to get the full decompressed length since > EROFS supports partial decompression. However for some other cases > such as fiemap, the full decompressed length is necessary for iomap to > make it work properly. > > This patch adds a way to get the full decompressed length. Note that > it takes more metadata overhead and it'd be avoided if possible in the > performance sensitive scenario. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks, From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52772C4338F for ; Wed, 18 Aug 2021 14:11:44 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E0054610A7 for ; Wed, 18 Aug 2021 14:11:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E0054610A7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GqVFV2sj6z3cKR for ; Thu, 19 Aug 2021 00:11:42 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=TbR8t2Px; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=chao@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=TbR8t2Px; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4GqVFR05fTz2xnd for ; Thu, 19 Aug 2021 00:11:38 +1000 (AEST) Received: by mail.kernel.org (Postfix) with ESMTPSA id E7EFC610A7; Wed, 18 Aug 2021 14:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629295896; bh=Gz6CCkSmBpJBb//SixnJg3yiMy1j4X3NG4qAXGzi90I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=TbR8t2PxXP85BxY8iJ+zv5suFPI9j1kMGjLSwWK9VduVeQFuRlKImvkjsPw08I2Nc Yfwo/E+C8mIZFpLimYl7JWnNbJIKPj3UYGQcN4zK5+j6TpobFdyG50rzAqJ3F8kvOh Vg0ZUSkB2qJchlBANicVCPgJo+cZQODlryiAxmDwK2821L9era9oxHjI+3jdSBye+z g8NeXkTMfgfy/bWuQqxBP1ulrBHvhKEZIegyCQBP7dHEb4gLVKRR+OrTjiVcajhJlC bM80Z0PUcRBMjZVx1yzH7BmffNGMgbA99rx4/we9EnGgqrOyWHoZZqxt54Dr72eCCS 81c1dPppV5HyA== Subject: Re: [PATCH v1.1 1/2] erofs: add support for the full decompressed length To: Gao Xiang , linux-erofs@lists.ozlabs.org References: <20210813052931.203280-2-hsiangkao@linux.alibaba.com> <20210814152727.78451-1-hsiangkao@linux.alibaba.com> From: Chao Yu Message-ID: Date: Wed, 18 Aug 2021 22:11:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210814152727.78451-1-hsiangkao@linux.alibaba.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nl6720 , Lasse Collin , LKML Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" On 2021/8/14 23:27, Gao Xiang wrote: > Previously, there is no need to get the full decompressed length since > EROFS supports partial decompression. However for some other cases > such as fiemap, the full decompressed length is necessary for iomap to > make it work properly. > > This patch adds a way to get the full decompressed length. Note that > it takes more metadata overhead and it'd be avoided if possible in the > performance sensitive scenario. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,