summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-10-05 16:19:24 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2015-10-10 01:20:55 +0200
commita43f7ec327b0d86cbb80d0841673038c0706e714 (patch)
treedd4c3359f53c5c5a5bb86d4455a7ac718f676f54 /fs/f2fs/segment.c
parentf2fs: use atomic64_t for extent cache hit stat (diff)
downloadlinux-a43f7ec327b0d86cbb80d0841673038c0706e714.tar.xz
linux-a43f7ec327b0d86cbb80d0841673038c0706e714.zip
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>
Diffstat (limited to 'fs/f2fs/segment.c')
0 files changed, 0 insertions, 0 deletions