aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorZhongkun He <hezhongkun.hzk@bytedance.com>2024-02-19 10:44:53 +0800
committerAndrew Morton <akpm@linux-foundation.org>2024-02-23 17:48:31 -0800
commit929e4c3534ecdc6c11921dff5a54597c5d61ca6a (patch)
tree2487f71f3ec4fb59b2ed3c7dcfed4d5eb19368cf /tools/perf/scripts/python/exported-sql-viewer.py
parentmm/zsmalloc: remove unused zspage->isolated (diff)
downloadlinux-929e4c3534ecdc6c11921dff5a54597c5d61ca6a.tar.gz
linux-929e4c3534ecdc6c11921dff5a54597c5d61ca6a.zip
mm/z3fold: fix the comment for __encode_handle()
The comment is confusing that Pool lock should be held as this function accesses first_num above the __encode_handle() because first_num is the element of z3fold_header which is protected by z3fold_header->page_lock. I found the same comment for encode_handle() in zbud.c by accident ,Pool lock should be held as this function accesses first|last_chunks, which is the element of zbud_header and it does not have any lock, so pool lock should be held. Z3fold is based on zbud, maybe the comment come from zbud, but it was wrong, so fix it. Link: https://lkml.kernel.org/r/20240219024453.2240147-1-hezhongkun.hzk@bytedance.com Signed-off-by: Zhongkun He <hezhongkun.hzk@bytedance.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Miaohe Lin <linmiaohe@huawei.com> Cc: Vitaly Wool <vitaly.wool@konsulko.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions