From: Fan Li Date: Mon, 14 Dec 2015 07:26:04 +0000 (+0800) Subject: f2fs: fix to update variable correctly when skip a unmapped block X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e8931582bdaf4d4a6ee7e520ef0ccd481713a42a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git f2fs: fix to update variable correctly when skip a unmapped block map.m_len should be reduced after skip a block Signed-off-by: Fan li Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 5fac4f259965..9949d0f332c2 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1759,6 +1759,7 @@ do_map: if (!(map.m_flags & F2FS_MAP_FLAGS)) { map.m_lblk++; + map.m_len--; continue; }