aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorSergey Senozhatsky <[email protected]>2022-09-13 00:27:44 +0900
committerAndrew Morton <[email protected]>2022-10-03 14:03:09 -0700
commitf635725c3905e755a8c3e2dc8cab7fcd0d38977f (patch)
treec20dbb3b053b5cf7b9ef5463cfbec9d16a9d77c8 /tools/perf/scripts/python/bin/stackcollapse-report
parenta18709442869e55c42969142d5abf6beb776dbba (diff)
zram: do not waste zram_table_entry flags bits
zram_table_entry::flags stores object size in the lower bits and zram pageflags in the upper bits. However, for some reason, we use 24 lower bits, while maximum zram object size is PAGE_SIZE, which requires PAGE_SHIFT bits (up to 16 on arm64). This wastes 24 - PAGE_SHIFT bits that we can use for additional zram pageflags instead. Also add a BUILD_BUG_ON() to alert us should we run out of bits in zram_table_entry::flags. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Sergey Senozhatsky <[email protected]> Reviewed-by: Brian Geffon <[email protected]> Acked-by: Minchan Kim <[email protected]> Cc: Nitin Gupta <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions