f2fs: improve searching speed of __next_free_blkoff
authorChangman Lee <cm224.lee@samsung.com>
Fri, 15 Nov 2013 04:21:16 +0000 (13:21 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:17:59 +0000 (10:17 +0900)
commite81c93cf8c7bd413898798cf8c67f18b1fef3360
tree6d57a57281d4ade400f3abac03511caf3a81eb34
parent9a7f143ab529352ebef13d3f0f4a09f13efa9435
f2fs: improve searching speed of __next_free_blkoff

To find a zero bit using the result of OR operation between ckpt_valid_map
and cur_valid_map is more fast than find a zero bit in each bitmap.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
[Jaegeuk Kim: adjust changed function name]
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/segment.c