commit | 692223d132067ef2c392adec6f1324d581496212 | [log] [tgz] |
---|---|---|
author | Fan Li <fanofcode.li@samsung.com> | Thu Nov 12 08:43:04 2015 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Fri Dec 04 11:52:35 2015 -0800 |
tree | bddf5a055f8fe120054be8bd79d81c23bba0292b | |
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>