summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/trace.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-03-21 13:09:45 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2017-03-24 20:10:48 +0100
commit9897159a7b1aa98ec0bc8fc053ab822e6634e7fa (patch)
treeb60c808243ffc2ce2538769c8d979bd04ade01a6 /fs/f2fs/trace.c
parentf2fs: more reasonable mem_size calculating of ino_entry (diff)
downloadlinux-9897159a7b1aa98ec0bc8fc053ab822e6634e7fa.tar.xz
linux-9897159a7b1aa98ec0bc8fc053ab822e6634e7fa.zip
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/trace.c')
0 files changed, 0 insertions, 0 deletions