On Wed, Mar 23, 2022 at 08:57:03AM +0800, Qu Wenruo wrote: > > > On 2022/3/22 23:55, Christoph Hellwig wrote: >> Avoid the extra allocation for all read bios by embedding a btrfs_work >> and I/O end type into the btrfs_bio structure. >> >> Signed-off-by: Christoph Hellwig <hch@xxxxxx> > > Do we really need to bump the size of btrfs_bio furthermore? > > Especially btrfs_bio is allocated for each 64K stripe... One of the async submission or completion contexts is allocated for almost every btrfs_bio. So overall this reduceѕ the memory usage (at least together with the rest of the series).