Skip to contentSkip to conversation

fsck.f2fs: add a missing 'fixed' during chk_dentries()

PATCH New JP Abgrall 1 participant 1 message Nov 13, 2014

lore
Share & tools
lore

JP Abgrall

author
#0 lore raw

PATCH 1/1 fsck.f2fs: add a missing 'fixed' during chk_dentries()

One of the cases would update the dentries but not set fixed=1 causing the update to not be written out.

Change-Id I111d599f93f7d5306dacd7d62da946fdb5c262ee

---
:100644 100644 78737d5... fa667dc... M fsck/fsck.c

 fsck/fsck.c | 1 +
 1 file changed, 1 insertion(+)
fsck/fsck.c +1 -0
index 78737d5..fa667dc 100644
@@ -739,6 +739,7 @@ static int __chk_dentries(struct f2fs_sb_info *sbi, u32 *child_cnt,
 					dentry[i].file_type);
 			i += slots;
 			free(name);
+			fixed = 1;
 			continue;
 		}
 
Signature · 9 lines
2.1.0.rc2.206.gedb03e5


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk