Re: [PATCH 2/3] btrfs: Replace kmap() with kmap_local_page() in lzo.c

From: Christoph Hellwig
Date: Tue May 31 2022 - 11:53:33 EST


On Tue, May 31, 2022 at 04:53:34PM +0200, Fabio M. De Francesco wrote:
> The use of kmap() is being deprecated in favor of kmap_local_page() where
> it is feasible. With kmap_local_page(), the mapping is per thread, CPU
> local and not globally visible.
>
> Therefore, use kmap_local_page() / kunmap_local() in lzo.c wherever the
> mappings are per thread and not globally visible.

This looks fine:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>