summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorFan Li <fanofcode.li@samsung.com>2015-12-14 15:26:04 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-14 10:17:54 -0800
commite8931582bdaf4d4a6ee7e520ef0ccd481713a42a (patch)
tree83f61214d918dd6480576b9234801bdfe186e212 /fs
parentd8fe4f0e74cb27e79b2b500ca6eae9f9b02748b4 (diff)
downloadblackbird-op-linux-e8931582bdaf4d4a6ee7e520ef0ccd481713a42a.tar.gz
blackbird-op-linux-e8931582bdaf4d4a6ee7e520ef0ccd481713a42a.zip
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 <fanofcode.li@samsung.com> Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/file.c1
1 files changed, 1 insertions, 0 deletions
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;
}
OpenPOWER on IntegriCloud