Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6040490rdb; Thu, 14 Dec 2023 06:58:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEn+ryuNNAhUghpp6JFZ3UaHUn5yX1wA+07xBeg0hILDOgP4Y55BZE1Xdlpb+64pA2zp6wj X-Received: by 2002:a05:6a20:3b29:b0:190:f53:210c with SMTP id c41-20020a056a203b2900b001900f53210cmr10071588pzh.6.1702565913374; Thu, 14 Dec 2023 06:58:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702565913; cv=none; d=google.com; s=arc-20160816; b=YdALoDqhUBGCbMaYaOgkM3Al2XXhniZX5aa9+fHilzEP9+Gsksz93tSNcERmB/HO30 K2vZ29kGhtlcgTHSzfPl+dnVmKWrRZz09coNS+zhPVxEl92RzDzlxZQslAqhZa0OFP7s M0GtN38ayqdKuglIUe/GgnEdUECcYdwzmQitAq+73bRWrcpLRP3hmWtuGDMGAsqRncfG SXu7B46ZfseOfPmBhdweqkCG8DnpKmMyRsSiZiGwTC4mdgvzbt9DNaTifVrbDEq2Uu7U K9yUiZbbX9ljihm0OvoMKhtRoKnWLFCFmNLJUboSk8hzlkKzNgs6W+b2Lp9KvtJyTGkt chSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=jN4+xL/iFv7NPuyoZeKh4tkrVt4QRs7E16rLAnOL83E=; fh=jsJwwuYTy3Q3bk3qROGtmq2W5LGrWtFhrJYiKtfg4qQ=; b=fco6Y8LdYnrVOTqKOEflcpmqsz7LqM+XE0RA5V94wk4cUKqS/GQ5QyVq1W8T5W5AL9 DGE48eqiwvJpRLfatfCqTyC6vL0U8sGzB8Z+kCzxb4Mu3CKu3lzbC3P/Fw6OOKyF90Zm 4T6sUqZht7LSJvDTrb5JGizDRjGhSuTUPmR0hOvi3lcurVydR/+LFu7i+RiSRhFAA7dw AnFE3WTdElurNVrgk2OJeb/XdXnZ048dN+ShPYoGcMbDnLot2Y4EzNwcEiRpjK5PFGvH peVDCrFGJxDxALokkS52DrY/HntxVMxJzuS/JLQNR1O9MQJ33LQZpry069OREWXkj9Cv Ueqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RaU+CPXo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ca14-20020a056a02068e00b005c66130e967si11526545pgb.264.2023.12.14.06.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 06:58:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RaU+CPXo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id ED27F8024037; Thu, 14 Dec 2023 06:58:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573586AbjLNO6W (ORCPT + 99 others); Thu, 14 Dec 2023 09:58:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573569AbjLNO6U (ORCPT ); Thu, 14 Dec 2023 09:58:20 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82023115 for ; Thu, 14 Dec 2023 06:58:27 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A8F9C433C7; Thu, 14 Dec 2023 14:58:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702565907; bh=/j5RpnUqat3bbDoOL84/V1VSN9mfM9Jec656vpK3jhQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=RaU+CPXo2IzhNayKhhg0hj6kZ30rrEafQAKlLZmyUKlJ/yyiLYYKQTaiBVMH0w3MK GQSL+8jgZQsnUyq1AeKYxRBPzhl0iOzJduB9pjmLh6rUanDrU4g5Svvdq34ESOdJaL /iiHW5gLSopn7z05jJFmyyQeqFhDzywKAc6HIJhMZDSCEbPJhBbzdSFGg2Hu8vvPhT sBgeBIDTkee8fChStFnygpuuPJbN0jpYrMAYotvffCa9sJLZDrilMDzRusyPnSsXdL JxvHDKevYzm43XzChV3G1H++JmlCpoWrk/3vFcOKSLRAy/qUfhd6zxrwQ3iLuqxFHs WUu+VzKfWd+4g== Message-ID: Date: Thu, 14 Dec 2023 22:58:24 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/5] erofs: basic sub-page compressed data support To: Gao Xiang , linux-erofs@lists.ozlabs.org Cc: LKML References: <20231206091057.87027-1-hsiangkao@linux.alibaba.com> Content-Language: en-US From: Chao Yu Autocrypt: addr=chao@kernel.org; keydata= xsFNBFYs6bUBEADJuxYGZRMvAEySns+DKVtVQRKDYcHlmj+s9is35mtlhrLyjm35FWJY099R 6DL9bp8tAzLJOMBn9RuTsu7hbRDErCCTiyXWAsFsPkpt5jgTOy90OQVyTon1i/fDz4sgGOrL 1tUfcx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jzRoQHBTdm2YV1YwgADg52/mU68Wo6viStZqcVEnX 3ALsWeETod3qeBCJ/TR2C6hnsqsALkXMFFJTX8aRi/E4WgBqNvNgAkWGsg5XKB3JUoJmQLqe CGVCT1OSQA/gTEfB8tTZAGFwlw1D3W988CiGnnRb2EEqU4pEuBoQir0sixJzFWybf0jjEi7P pODxw/NCyIf9GNRNYByUTVKnC7C51a3b1gNs10aTUmRfQuu+iM5yST5qMp4ls/yYl5ybr7N1 zSq9iuL13I35csBOn13U5NE67zEb/pCFspZ6ByU4zxChSOTdIJSm4/DEKlqQZhh3FnVHh2Ld eG/Wbc1KVLZYX1NNbXTz7gBlVYe8aGpPNffsEsfNCGsFDGth0tC32zLT+5/r43awmxSJfx2P 5aGkpdszvvyZ4hvcDfZ7U5CBItP/tWXYV0DDl8rCFmhZZw570vlx8AnTiC1v1FzrNfvtuxm3 92Qh98hAj3cMFKtEVbLKJvrc2AO+mQlS7zl1qWblEhpZnXi05S1AoT0gDW2lwe54VfT3ySon 8Klpbp5W4eEoY21tLwuNzgUMxmycfM4GaJWNCncKuMT4qGVQO9SPFs0vgUrdBUC5Pn5ZJ46X mZA0DUz0S8BJtYGI0DUC/jAKhIgy1vAx39y7sAshwu2VILa71tXJ In-Reply-To: <20231206091057.87027-1-hsiangkao@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Dec 2023 06:58:32 -0800 (PST) On 2023/12/6 17:10, Gao Xiang wrote: > Hi folks, > > Recently, there are two new cases so that we need to add a preliminary > sub-page block support for compressed files; > > - As Android folks requested, Android ecosystem itself is now switching > to 16k page size for their arm64 devices. They needs an option of > 4k-block image compatibility on their new 16k devices; > > - Some arm64 cloud servers use 64k page size for their optimized > workloads, but 4k-block EROFS container images need to be parsed too. > > So this patchset mainly addresses the requirements above with a very > very simple approach as a start: just allocate short-lived temporary > buffers all the time to keep compressed data if sub-page blocks are > identified. In other words, no inplace/cache decompression for > the preliminary support. > > This patchset survives EROFS stress test on my own testfarms. Looks good to me, feel free to add: Reviewed-by: Chao Yu Thanks, > > Thanks, > Gao Xiang > > Gao Xiang (5): > erofs: support I/O submission for sub-page compressed blocks > erofs: record `pclustersize` in bytes instead of pages > erofs: fix up compacted indexes for block size < 4096 > erofs: refine z_erofs_transform_plain() for sub-page block support > erofs: enable sub-page compressed block support > > fs/erofs/decompressor.c | 81 +++++++++------ > fs/erofs/inode.c | 6 +- > fs/erofs/zdata.c | 224 ++++++++++++++++++---------------------- > fs/erofs/zmap.c | 32 +++--- > 4 files changed, 169 insertions(+), 174 deletions(-) >