diff options
author | Fan Li <fanofcode.li@samsung.com> | 2015-11-12 08:43:04 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-12-04 11:52:35 -0800 |
commit | 692223d132067ef2c392adec6f1324d581496212 (patch) | |
tree | bddf5a055f8fe120054be8bd79d81c23bba0292b /kernel/debug | |
parent | eb7e813cc791735f2428202d5249a8fd769df1f3 (diff) |
f2fs: optimize __find_rev_next_bit
1. Skip __reverse_ulong if the bitmap is empty.
2. Reduce branches and codes.
According to my test, the performance of this new version is 5% higher on
an empty bitmap of 64bytes, and remains about the same in the worst scenario.
Signed-off-by: Fan li <fanofcode.li@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions