aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/node.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-03-21 20:09:45 +0800
committerMoyster <oysterized@gmail.com>2017-05-21 18:38:56 +0200
commit4362663e5a47855ec45c57c8cdb251d726e0c9ce (patch)
tree9e3aaa099a21cefc315b4bfae066601a1132e74e /fs/f2fs/node.c
parentdcebd7e78cdf6c5b489ebf87325b2bcbe344ca12 (diff)
f2fs: fix recording invalid last_victim
When doing garbage collection, we try to record segment offset which locates at next one of last victim, using it as the start offset in next searching. But in some corner cases, recorded offset may cross the end of main segment area, it will cause incorrectly searching in dirty_segmap bitmap. This patch adds modular operation to avoid this issue. Reported-by: Yunlei He <heyunlei@huawei.com> Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
0 files changed, 0 insertions, 0 deletions