]> git.ipfire.org Git - people/ms/linux.git/commit - fs/f2fs/gc.c
f2fs: skip searching dirty map if dirty segment is not exist
authorChao Yu <chao2.yu@samsung.com>
Mon, 5 Oct 2015 14:20:40 +0000 (22:20 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 9 Oct 2015 23:20:56 +0000 (16:20 -0700)
commit3342bb303bf48dd8bb5ac94c3356489ff53e4d04
treed5aa4f6a768a9b50a8ed3662d801a29f285be52d
parenta43f7ec327b0d86cbb80d0841673038c0706e714
f2fs: skip searching dirty map if dirty segment is not exist

When searching victim during gc, if there are no dirty segments in
filesystem, we will still take the time to search the whole dirty segment
map, it's not needed, it's better to skip in this condition.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c