summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2021-07-01 03:53:04 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2021-07-01 20:06:02 +0200
commit338483372626f9b89ed91ec0b422562ef53b0b12 (patch)
treee1b793529c9b13068cdc404bf23a4cc3723544c5 /drivers/block
parentmm/zsmalloc.c: remove confusing code in obj_free() (diff)
downloadlinux-338483372626f9b89ed91ec0b422562ef53b0b12.tar.xz
linux-338483372626f9b89ed91ec0b422562ef53b0b12.zip
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>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions