Skip to contentSkip to conversation

f2fs: fix to update variable correctly when skip a unmapped block

PATCH In review Fan Li 2 participants 2 messages Dec 14, 2015 F2FS file system

lore
Share & tools
lore

Fan Li

author
#0 lore raw

PATCH 1/1 f2fs: fix to update variable correctly when skip a unmapped block

map.m_len should be reduced after skip a block

---
 fs/f2fs/file.c |    1 +
 1 file changed, 1 insertion(+)
fs/f2fs/file.c +1 -0
index 5fac4f2..9949d0f 100644
@@ -1759,6 +1759,7 @@ do_map:
 
                if (!(map.m_flags & F2FS_MAP_FLAGS)) {
                        map.m_lblk++;
+                       map.m_len--;
                        continue;
                }
 
Signature · 4 lines
1.7.9.5


------------------------------------------------------------------------------
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Fan Li [mailto:[email protected]]
Sent: Monday, December 14, 2015 3:26 PM
To: 'Jaegeuk Kim'
Cc: [email protected]
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

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