summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorFan Li <fanofcode.li@samsung.com>2017-10-30 15:19:48 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2017-11-15 22:02:23 -0800
commitddb8e2ae9811a6e1a186e1366db817924231842e (patch)
tree0f941e7b6a2408635632749c8f6b0ad12721cc5d /tools/perf/scripts/python/failed-syscalls-by-pid.py
parentf46ae958c701e580c4405c7b455438980d78585a (diff)
f2fs: optimize __update_nat_bits
Make three modification for __update_nat_bits: 1. Take the codes of dealing the nat with nid 0 out of the loop Such nat only needs to be dealt with once at beginning. 2. Use " nat_index == 0" instead of " start_nid == 0" to decide if it's the first nat block It's better that we don't assume @start_nid is the first nid of the nat block it's in. 3. Use " if (nat_blk->entries[i].block_addr != NULL_ADDR)" to explicitly comfirm the value of block_addr use constant to make sure the codes is right, even if the value of NULL_ADDR changes. Signed-off-by: Fan li <fanofcode.li@samsung.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions