]> www.infradead.org Git - users/jedix/linux-maple.git/commit
zsmalloc: zs_object_copy: add clarifying comment
authorAlexey Romanov <avromanov@sberdevices.ru>
Thu, 11 Aug 2022 15:37:54 +0000 (18:37 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Aug 2022 05:02:48 +0000 (22:02 -0700)
commitbc51521b2ca22e989ed21a8bb712598061d5ae80
tree80a2c14205792137c06f6c2d82ba8e10f1820e61
parent52680cfd5356dfc404380e6b108e4d0c75d86b88
zsmalloc: zs_object_copy: add clarifying comment

Patch series "tidy up zsmalloc implementation"

This patchset remove some unnecessary checks and adds a clarifying
comment.  While analysing zs_object_copy() function code, I spent some
time to understand what the call kunmap_atomic(d_addr) is for.  It seems
that this point is not trivial and it is worth adding a comment.

This patch (of 2):

It's not obvious why kunmap_atomic(d_addr) call is needed.

Link: https://lkml.kernel.org/r/20220811153755.16102-1-avromanov@sberdevices.ru
Link: https://lkml.kernel.org/r/20220811153755.16102-2-avromanov@sberdevices.ru
Signed-off-by: Alexey Romanov <avromanov@sberdevices.ru>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zsmalloc.c