[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c5a47888-9a6d-4a2c-9861-c9503cc55701@kernel.org>
Date: Tue, 1 Jul 2025 11:01:24 +0800
From: Chao Yu <chao@...nel.org>
To: Jianan Huang <huangjianan@...omi.com>,
linux-f2fs-devel@...ts.sourceforge.net, jaegeuk@...nel.org
Cc: chao@...nel.org, wanghui33@...omi.com, linux-kernel@...r.kernel.org,
Sheng Yong <shengyong1@...omi.com>
Subject: Re: [PATCH v4] f2fs: avoid splitting bio when reading multiple pages
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@...omi.com>
> Signed-off-by: Sheng Yong <shengyong1@...omi.com>
Reviewed-by: Chao Yu <chao@...nel.org>
Thanks,
Powered by blists - more mailing lists