diff options
| author | Fan Li <fanofcode.li@samsung.com> | 2017-11-07 19:14:24 +0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-11-15 22:02:34 -0800 |
| commit | ca28e9670e807900f4ad9a447ffa50b0b4cbff5f (patch) | |
| tree | 02b3c6ff9dfc443b5192548af158185177acb61b /tools/perf/scripts/python | |
| parent | 460688b59e8bc67d25340c430c099f1c8ebcdb4d (diff) | |
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')
0 files changed, 0 insertions, 0 deletions
