From: Chao Yu <chao@kernel.org>
To: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: linux-f2fs-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org, Chao Yu <chao.yu@linux.dev>
Subject: Re: [RFC v2] f2fs: extent cache: support unaligned extent
Date: Wed, 4 Aug 2021 15:41:16 +0800 [thread overview]
Message-ID: <2cd44682-4e50-24c0-0f56-5f6aaf827e48@kernel.org> (raw)
In-Reply-To: <YQnzJojWyVrNf9op@google.com>
On 2021/8/4 9:53, Jaegeuk Kim wrote:
>> +#ifdef CONFIG_F2FS_FS_COMPRESSION
>
> Can remove this by if (unaligned)?
>
>> + if (unaligned)
>> + en->plen = ((struct extent_info_unaligned *)ei)->plen;
struct extent_info_unaligned should be covered by CONFIG_F2FS_FS_COMPRESSION.
>> static inline bool __is_extent_mergeable(struct extent_info *back,
>> - struct extent_info *front)
>> + struct extent_info *front, bool unaligned)
>> {
>> +#ifdef CONFIG_F2FS_FS_COMPRESSION
>
> This can be controlled by "bool unaligned"?
Ditto,
>
>> + struct extent_info_unaligned *be = (struct extent_info_unaligned *)back;
>> + struct extent_info_unaligned *fe = (struct extent_info_unaligned *)front;
>> +
>> + if (unaligned && (be->ei.len != be->plen || fe->ei.len != fe->plen))
>> + return false;
>> +#endif
Thanks,
prev parent reply other threads:[~2021-08-04 7:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-03 2:39 [RFC v2] f2fs: extent cache: support unaligned extent Chao Yu
2021-08-03 18:41 ` Jaegeuk Kim
2021-08-04 0:55 ` Chao Yu
2021-08-04 1:53 ` Jaegeuk Kim
2021-08-04 7:41 ` 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=2cd44682-4e50-24c0-0f56-5f6aaf827e48@kernel.org \
--to=chao@kernel.org \
--cc=chao.yu@linux.dev \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.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