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 6BC4DC678D4 for ; Fri, 3 Mar 2023 00:38:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229781AbjCCAit (ORCPT ); Thu, 2 Mar 2023 19:38:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbjCCAim (ORCPT ); Thu, 2 Mar 2023 19:38:42 -0500 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 331F54ED0 for ; Thu, 2 Mar 2023 16:38:27 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R381e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VcyoRls_1677803903; Received: from 192.168.3.7(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VcyoRls_1677803903) by smtp.aliyun-inc.com; Fri, 03 Mar 2023 08:38:24 +0800 Message-ID: <8b5071b3-ff00-b987-9519-f6cbf3232d22@linux.alibaba.com> Date: Fri, 3 Mar 2023 08:38:23 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v4 2/2] erofs: set block size to the on-disk block size To: Jingbo Xu , xiang@kernel.org, chao@kernel.org, huyue2@coolpad.com, linux-erofs@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org References: <20230302143915.111739-1-jefflexu@linux.alibaba.com> <20230302143915.111739-3-jefflexu@linux.alibaba.com> From: Gao Xiang In-Reply-To: <20230302143915.111739-3-jefflexu@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/3/2 22:39, Jingbo Xu wrote: > Set the block size to that specified in on-disk superblock. > > Also remove the hard constraint of PAGE_SIZE block size for the > uncompressed device backend. This constraint is temporarily remained > for compressed device and fscache backend, as there is more work needed > to handle the condition where the block size is not equal to PAGE_SIZE. > > It is worth noting that the on-disk block size is read prior to > erofs_superblock_csum_verify(), as the read block size is needed in the > latter. > > Besides, later we are going to make erofs refer to tar data blobs (which > is 512-byte aligned) for OCI containers, where the block size is 512 > bytes. In this case, the 512-byte block size may not be adequate for a > directory to contain enough dirents. To fix this, we are also going to > introduce directory block size independent on the block size. > > Due to we have already supported block size smaller than PAGE_SIZE now, > disable all these images with such separated directory block size until > we supported this feature later. > > Signed-off-by: Jingbo Xu Reviewed-by: Gao Xiang Thanks, Gao Xiang