aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorTang Junhui <[email protected]>2018-03-18 17:36:22 -0700
committerJens Axboe <[email protected]>2018-03-18 20:15:20 -0600
commitca71df31661a0518ed58a1a59cf1993962153ebb (patch)
treeb1804803052dbad87886ce0284a93369fa915f7a /tools/perf/scripts/python/stackcollapse.py
parentf3641c3abd1da978ee969b0203b71b86ec1bfa93 (diff)
bcache: fix using of loop variable in memory shrink
In bch_mca_scan(), There are some confusion and logical error in the use of loop variables. In this patch, we clarify them as: 1) nr: the number of btree nodes needs to scan, which will decrease after we scan a btree node, and should not be less than 0; 2) i: the number of btree nodes have scanned, includes both btree_cache_freeable and btree_cache, which should not be bigger than btree_cache_used; 3) freed: the number of btree nodes have freed. Signed-off-by: Tang Junhui <[email protected]> Reviewed-by: Michael Lyle <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions