Commit e8931582 authored by Fan Li's avatar Fan Li Committed by Jaegeuk Kim

f2fs: fix to update variable correctly when skip a unmapped block

map.m_len should be reduced after skip a block
Signed-off-by: default avatarFan li <fanofcode.li@samsung.com>
Reviewed-by: default avatarChao Yu <chao2.yu@samsung.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent d8fe4f0e
......@@ -1759,6 +1759,7 @@ static int f2fs_defragment_range(struct f2fs_sb_info *sbi,
if (!(map.m_flags & F2FS_MAP_FLAGS)) {
map.m_lblk++;
map.m_len--;
continue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment