summaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2016-01-22 12:42:06 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2016-02-23 03:07:23 +0300
commit0ab143563198055bd45bbb511bb41f5968fdd8bd (patch)
tree42e889554c310fcd9da114845aaa0b972ea94d0e /fs/f2fs/data.c
parent2304cb0c4438829c88bed69f57374b80ae31f0ba (diff)
downloadlinux-0ab143563198055bd45bbb511bb41f5968fdd8bd.tar.xz
f2fs: correct search area in get_new_segment
get_new_segment starts from current segment position, tries to search a free segment among its right neighbors locate in same section. But previously our search area was set as [current segment, max segment], which means we have to search to more bits in free_segmap bitmap for some worse cases. So here we correct the search area to [current segment, last segment in section] to avoid unnecessary searching. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
0 files changed, 0 insertions, 0 deletions