All of lore.kernel.org
 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

* Re: [PATCH] f2fs: fix to update variable correctly when skip a unmapped block
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Chao Yu @ 2015-12-14 10:05 UTC (permalink / raw)
  To: 'Fan Li', 'Jaegeuk Kim'; +Cc: linux-f2fs-devel

> -----Original Message-----
> From: Fan Li [mailto:fanofcode.li@samsung.com]
> Sent: Monday, December 14, 2015 3:26 PM
> To: 'Jaegeuk Kim'
> Cc: linux-f2fs-devel@lists.sourceforge.net
> Subject: [f2fs-dev] [PATCH] 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>



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

^ permalink raw reply	[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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.