summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorFan Li <fanofcode.li@samsung.com>2015-12-14 08:26:04 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-14 19:17:54 +0100
commite8931582bdaf4d4a6ee7e520ef0ccd481713a42a (patch)
tree83f61214d918dd6480576b9234801bdfe186e212 /fs/f2fs/file.c
parentf2fs: write only the pages in range during defragment (diff)
downloadlinux-e8931582bdaf4d4a6ee7e520ef0ccd481713a42a.tar.xz
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 '')
-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;
}