linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [PATCH] f2fs: fix to update variable correctly when skip a unmapped block
@ 2015-12-14  7:26 Fan Li
  2015-12-14 10:05 ` Chao Yu
  0 siblings, 1 reply; 2+ messages in thread
From: Fan Li @ 2015-12-14  7:26 UTC (permalink / raw)
  To: 'Jaegeuk Kim'; +Cc: linux-f2fs-devel

map.m_len should be reduced after skip a block

Signed-off-by: Fan li <fanofcode.li@samsung.com>
---
 fs/f2fs/file.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 5fac4f2..9949d0f 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;
                }

-- 
1.7.9.5


------------------------------------------------------------------------------

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-14 10:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-14  7:26 [PATCH] f2fs: fix to update variable correctly when skip a unmapped block Fan Li
2015-12-14 10:05 ` Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).