commit | a43f7ec327b0d86cbb80d0841673038c0706e714 | [log] [tgz] |
---|---|---|
author | Chao Yu <chao2.yu@samsung.com> | Mon Oct 05 22:19:24 2015 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Fri Oct 09 16:20:55 2015 -0700 |
tree | dd4c3359f53c5c5a5bb86d4455a7ac718f676f54 | |
parent | 5b7ee374144f8ef2db3e25d0d59a8ad83bb3cf33 [diff] |
f2fs: fix to avoid redundant searching in dirty map during gc When doing gc, we search a victim in dirty map, starting from position of last victim, we will reset the current searching position until we touch the end of dirty map, and then search the whole diryt map. So sometimes we will search the range [victim, last] twice, it's redundant, this patch avoids this issue. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>