From: Chao Yu <chao@kernel.org>
To: Jingbo Xu <jefflexu@linux.alibaba.com>,
xiang@kernel.org, huyue2@coolpad.com,
linux-erofs@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 2/2] erofs: set block size to the on-disk block size
Date: Sun, 16 Apr 2023 22:09:33 +0800 [thread overview]
Message-ID: <87dc51ef-35d2-6ae9-6e56-667bbc04526c@kernel.org> (raw)
In-Reply-To: <20230313135309.75269-3-jefflexu@linux.alibaba.com>
On 2023/3/13 21:53, 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 <jefflexu@linux.alibaba.com>
> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
> Reviewed-by: Yue Hu <huyue2@coolpad.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Thanks,
prev parent reply other threads:[~2023-04-16 14:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-13 13:53 [PATCH v6 0/2] " Jingbo Xu
2023-03-13 13:53 ` [PATCH v6 1/2] erofs: avoid hardcoded blocksize for subpage block support Jingbo Xu
2023-04-16 14:08 ` Chao Yu
2023-03-13 13:53 ` [PATCH v6 2/2] erofs: set block size to the on-disk block size Jingbo Xu
2023-04-16 14:09 ` Chao Yu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87dc51ef-35d2-6ae9-6e56-667bbc04526c@kernel.org \
--to=chao@kernel.org \
--cc=huyue2@coolpad.com \
--cc=jefflexu@linux.alibaba.com \
--cc=linux-erofs@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xiang@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®