Re: [PATCH] zram: Use kmap_local_page()

From: Sergey Senozhatsky
Date: Tue Nov 28 2023 - 23:19:39 EST


On (23/11/28 16:01), Minchan Kim wrote:
> On Tue, Nov 28, 2023 at 05:22:07PM +0900, Sergey Senozhatsky wrote:
> > Use kmap_local_page() instead of kmap_atomic() which has been
> > deprecated.
> >
> > Signed-off-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>
> Acked-by: Minchan Kim <minchan@xxxxxxxxxx>

Thanks.

> I didn't know that the kmap_atomic was deprecated.

Me neither, figured it out recently (via checkpatch warning).
https://lore.kernel.org/all/20220813220034.806698-1-ira.weiny@xxxxxxxxx/

We need to take a look at zsmalloc, the conversion can be a little more
difficult than zram's.