diff options
| author | Chao Yu <chao2.yu@samsung.com> | 2016-01-22 17:42:06 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:32:51 +0200 |
| commit | 00509590355c4d9fa18b75c7b4ef6d45b71efaea (patch) | |
| tree | 0d2663f51e01bb3fc05f48b9ada236edfec80e95 /scripts/basic/fixdep.c | |
| parent | 8f490ca2f086eeabb99cdcfeff3818d7b9f27ad2 (diff) | |
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 'scripts/basic/fixdep.c')
0 files changed, 0 insertions, 0 deletions
