* [PATCH v1 0/2] tidy up zsmalloc implementation
@ 2022-08-11 15:37 Alexey Romanov
[not found] ` <20220811153755.16102-2-avromanov@sberdevices.ru>
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Romanov @ 2022-08-11 15:37 UTC (permalink / raw)
To: minchan, senozhatsky, ngupta, akpm
Cc: linux-mm, linux-kernel, kernel, Alexey Romanov
Hello!
This patchset remove some unnecessary checks and adds clarifying
comment. While analysis 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.
Alexey Romanov (2):
zsmalloc: zs_object_copy: add clarifying comment
zsmalloc: remove unnecessary size_class NULL check
mm/zsmalloc.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
--
2.30.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v1 1/2] zsmalloc: zs_object_copy: add clarifying comment
[not found] ` <20220811153755.16102-2-avromanov@sberdevices.ru>
@ 2022-08-15 2:52 ` Sergey Senozhatsky
0 siblings, 0 replies; 2+ messages in thread
From: Sergey Senozhatsky @ 2022-08-15 2:52 UTC (permalink / raw)
To: Alexey Romanov
Cc: minchan, senozhatsky, ngupta, akpm, linux-mm, linux-kernel,
kernel
On (22/08/11 18:37), Alexey Romanov wrote:
> @@ -1564,6 +1564,12 @@ static void zs_object_copy(struct size_class *class, unsigned long dst,
> d_off += size;
> d_size -= size;
>
> + /* Calling kunmap_atomic(d_addr) is necessary. kunmap_atomic() calls
> + * must occurs in reverse order of calls to kmap_atomic().
> + * So, to call kunmap_atomic(s_addr) we should first call kunmap_atomic(d_addr).
> + * For more details see:
> + * https://lore.kernel.org/linux-mm/5512421D.4000603@samsung.com/
> + */
I'd drop the link part, Emails are not documentation, kmap_atomic
is documented in Documentation/mm/highmem
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-15 2:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-11 15:37 [PATCH v1 0/2] tidy up zsmalloc implementation Alexey Romanov
[not found] ` <20220811153755.16102-2-avromanov@sberdevices.ru>
2022-08-15 2:52 ` [PATCH v1 1/2] zsmalloc: zs_object_copy: add clarifying comment Sergey Senozhatsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).