Re: [PATCH 1/3] lib: Introduce copy_from_back()

From: Christoph Hellwig
Date: Mon Nov 16 2020 - 11:35:50 EST


On Tue, Nov 10, 2020 at 03:16:01AM +0800, zengzhaoxiu@xxxxxxx wrote:
> From: Zhaoxiu Zeng <zhaoxiu.zeng@xxxxxxxxx>
>
> Copying the matched bytes from the back output buffer is the
> key code of the LZ decompression algorithm which used by zlib, lzo, etc.
>
> This patch introduce the optimized copy_from_back function.
> The function will be used by later patches in this series.
>
> Optimization for a specific architecture will be available in the future.
>
> Signed-off-by: Zhaoxiu Zeng <zhaoxiu.zeng@xxxxxxxxx>

Please use mandatory-y in include/asm-generic/Kbuild for the case where
we have a sensible default that only a few architectures want to
override.