aboutsummaryrefslogtreecommitdiff
path: root/scripts/extract-vmlinux
diff options
context:
space:
mode:
authorFan Li <fanofcode.li@samsung.com>2016-02-03 16:21:57 +0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:32:54 +0200
commitf233152fd9ceedaef5bb27d16f1e5b86376f5365 (patch)
treebf70a08648c70285d0741ae1473da4788c622263 /scripts/extract-vmlinux
parentf62d9bb3ea033723ea52fec96c29486bbaeeb786 (diff)
f2fs: avoid unnecessary search while finding victim in gc
variable nsearched in get_victim_by_default() indicates the number of dirty segments we already checked. There are 2 problems about the way it updates: 1. When p.ofs_unit is greater than 1, the victim we find consists of multiple segments, possibly more than 1 dirty segment. But nsearched always increases by 1. 2. If segments have been found but not been chosen, nsearched won't increase. So even we have checked all dirty segments, nsearched may still less than p.max_search. All these problems could cause unnecessary search after all dirty segments have already been checked. Signed-off-by: Fan li <fanofcode.li@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts/extract-vmlinux')
0 files changed, 0 insertions, 0 deletions