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: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e8931582bdaf4d4a6ee7e520ef0ccd481713a42a;p=openwrt%2Fstaging%2Fblogic.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; }