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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}