]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
f2fs: fix to update variable correctly when skip a unmapped block
authorFan Li <fanofcode.li@samsung.com>
Mon, 14 Dec 2015 07:26:04 +0000 (15:26 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 14 Dec 2015 18:17:54 +0000 (10:17 -0800)
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>
fs/f2fs/file.c

index 5fac4f259965167f1344ec2ba4e2ca8f1c556630..9949d0f332c2afc0327ed2615315cf7b95059642 100644 (file)
@@ -1759,6 +1759,7 @@ do_map:
 
                if (!(map.m_flags & F2FS_MAP_FLAGS)) {
                        map.m_lblk++;
+                       map.m_len--;
                        continue;
                }