aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorMinchan Kim <[email protected]>2017-09-06 16:19:44 -0700
committerLinus Torvalds <[email protected]>2017-09-06 17:27:25 -0700
commit4ebbe7f7fc99260afd51759e35dbfdd6010dc697 (patch)
tree66b5987dd7b9e177b381fc2201a489558a04794a /tools/perf/scripts/python/netdev-times.py
parentc6f03e2903c9ecd8fd709a5b3fa8cf0a8ae0b3da (diff)
zram: clean up duplicated codes in __zram_bvec_write
Patch series "writeback incompressible pages to storage", v1. zRam is useful for memory saving with compressible pages but sometime, workload can be changed and system has lots of incompressible pages which is very harmful for zram. This patch supports writeback feature of zram so admin can set up a block device and with it, zram can save the memory via writing out the incompressile pages once it found it's incompressible pages (1/4 comp ratio) instead of keeping the page in memory. [1-3] is just clean up and [4-8] is step by step feature enablement. [4-8] is logically not bisectable(ie, logical unit separation) although I tried to compiled out without breaking but I think it would be better to review. This patch (of 9): __zram_bvec_write has some of duplicated logic for zram meta data handling of same_page|compressed_page. This patch aims to clean it up without behavior change. [[email protected]: fix compr_data_size stat] Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Minchan Kim <[email protected]> Signed-off-by: Yisheng Xie <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Cc: Juneho Choi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions