Re: [PATCH v3] erofs: relaxed temporary buffers allocation on readahead

From: Gao Xiang
Date: Fri Jan 26 2024 - 08:30:45 EST


Hi Yue,

On 2024/1/26 18:46, Yue Hu wrote:
On Fri, 26 Jan 2024 13:36:16 +0800
Gao Xiang <hsiangkao@xxxxxxxxxxxxxxxxx> wrote:


..

/*
@@ -1276,7 +1280,11 @@ static int z_erofs_decompress_pcluster(struct z_erofs_decompress_backend *be,
.inplace_io = overlapped,
.partial_decoding = pcl->partial,
.fillgaps = pcl->multibases,
+ .gfp = pcl->besteffort ?
+ GFP_KERNEL | __GFP_NOFAIL :
+ GFP_NOWAIT | __GFP_NORETRY
}, be->pagepool);
+ pcl->besteffort = false;

reposition it following `pcl->multibases = false`?

Good idea! Let me update this.

Thanks,
Gao Xiang