diff options
| author | Fan Li <fanofcode.li@samsung.com> | 2015-12-14 15:26:04 +0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:32:31 +0200 |
| commit | 49ae3ec614653104f40694c922a59ebc32110ca9 (patch) | |
| tree | 94391fd0c3c5175ff1010d93263861c263986dd0 | |
| parent | ae3c064f49997da3b543329f399ba85349d877cf (diff) | |
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>
| -rw-r--r-- | fs/f2fs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index c834cecad..58488dc1c 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -1780,6 +1780,7 @@ do_map: if (!(map.m_flags & F2FS_MAP_FLAGS)) { map.m_lblk++; + map.m_len--; continue; } |
