]> git.baikalelectronics.ru Git - kernel.git/commit
mm/zsmalloc.c: improve readability for async_free_zspage()
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 1 Jul 2021 01:53:04 +0000 (18:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Jul 2021 18:06:02 +0000 (11:06 -0700)
commitf0771e80368e29d54978e676304e537a560cd2e6
treee1b793529c9b13068cdc404bf23a4cc3723544c5
parente049c55e8f6fba1d389ef790484c1e335114ab6d
mm/zsmalloc.c: improve readability for async_free_zspage()

The class is extracted from pool->size_class[class_idx] again before
calling __free_zspage().  It looks like class will change after we fetch
the class lock.  But this is misleading as class will stay unchanged.

Link: https://lkml.kernel.org/r/20210624123930.1769093-4-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zsmalloc.c