mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chao Yu <chao@kernel.org>
To: Jianan Huang <huangjianan@xiaomi.com>,
	linux-f2fs-devel@lists.sourceforge.net, jaegeuk@kernel.org
Cc: chao@kernel.org, wanghui33@xiaomi.com,
	linux-kernel@vger.kernel.org, Sheng Yong <shengyong1@xiaomi.com>
Subject: Re: [PATCH v4] f2fs: avoid splitting bio when reading multiple pages
Date: Tue, 1 Jul 2025 11:01:24 +0800	[thread overview]
Message-ID: <c5a47888-9a6d-4a2c-9861-c9503cc55701@kernel.org> (raw)
In-Reply-To: <20250630125753.650630-1-huangjianan@xiaomi.com>

On 6/30/25 20:57, Jianan Huang wrote:
> When fewer pages are read, nr_pages may be smaller than nr_cpages. Due
> to the nr_vecs limit, the compressed pages will be split into multiple
> bios and then merged at the block level. In this case, nr_cpages should
> be used to pre-allocate bvecs.
> To handle this case, align max_nr_pages to cluster_size, which should be
> enough for all compressed pages.
> 
> Signed-off-by: Jianan Huang <huangjianan@xiaomi.com>
> Signed-off-by: Sheng Yong <shengyong1@xiaomi.com>

Reviewed-by: Chao Yu <chao@kernel.org>

Thanks,

  reply	other threads:[~2025-07-01  3:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-30 12:57 Jianan Huang
2025-07-01  3:01 ` Chao Yu [this message]
2025-07-09 18:10 ` [f2fs-dev] " patchwork-bot+f2fs

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=c5a47888-9a6d-4a2c-9861-c9503cc55701@kernel.org \
    --to=chao@kernel.org \
    --cc=huangjianan@xiaomi.com \
    --cc=jaegeuk@kernel.org \
    --cc=linux-f2fs-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shengyong1@xiaomi.com \
    --cc=wanghui33@xiaomi.com \
    /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®