aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/latent_entropy_plugin.c
diff options
context:
space:
mode:
authorFan Li <[email protected]>2017-11-07 19:14:24 +0800
committerJaegeuk Kim <[email protected]>2017-11-09 09:43:09 -0800
commit974565744955b6154a93c85b77cb94026c85ff5a (patch)
treefefdedfa4ff3872c5a10affb50ebcd47cba59927 /scripts/gcc-plugins/latent_entropy_plugin.c
parent74986213adaff2ceab81fc0bb29dbb80d05665b3 (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 <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/latent_entropy_plugin.c')
0 files changed, 0 insertions, 0 deletions