diff options
| author | Fan Li <fanofcode.li@samsung.com> | 2015-11-12 08:43:04 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:32:26 +0200 |
| commit | d04cad8a000afa61d8111eecd16d0d27baf143fe (patch) | |
| tree | 586999ab5fc90b1c23615d72aba589a242780467 /include/linux/buffer_head.h | |
| parent | fe28574a39af585290fc78566b774388efd40f10 (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 'include/linux/buffer_head.h')
0 files changed, 0 insertions, 0 deletions
