diff options
author | 2017-11-07 19:14:24 +0800 | |
---|---|---|
committer | 2017-11-09 09:43:09 -0800 | |
commit | 974565744955b6154a93c85b77cb94026c85ff5a (patch) | |
tree | fefdedfa4ff3872c5a10affb50ebcd47cba59927 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f2fs: keep scanning until enough free nids are acquired (diff) | |
download | linux-rng-974565744955b6154a93c85b77cb94026c85ff5a.tar.xz linux-rng-974565744955b6154a93c85b77cb94026c85ff5a.zip |
f2fs: optimize the way of traversing free_nid_bitmap
We call scan_free_nid_bits only when there isn't many
free nids left, it means that marked bits in free_nid_bitmap
are supposed to be few, use find_next_bit_le is more
efficient in such case.
According to my tests, use find_next_bit_le instead of
test_bit_le will cut down the traversal time to one
third of its original.
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions