Re: [PATCH v2 2/2] erofs-utils: more sanity check for buffer allocation optimization

2021-02-28 Thread Li GuiFu via Linux-erofs
On 2021/2/14 23:35, Gao Xiang via Linux-erofs wrote: > From: Gao Xiang > > In case that new buffer allocation optimization logic is > potentially broken. > > Signed-off-by: Gao Xiang > --- It looks good Reviewed-by: Li Guifu Thanks,

[PATCH v2 2/2] erofs-utils: more sanity check for buffer allocation optimization

2021-02-14 Thread Gao Xiang via Linux-erofs
From: Gao Xiang In case that new buffer allocation optimization logic is potentially broken. Signed-off-by: Gao Xiang --- changes since v1: - add a more check "used_before != cur->buffers.off % EROFS_BLKSIZ" lib/cache.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff