From 9f87126aed112514e566c08a9f8238465923cc76 Mon Sep 17 00:00:00 2001 From: JP Abgrall Date: Mon, 3 Nov 2014 13:27:42 -0800 Subject: [PATCH] fsck.f2fs: actually flag the fixed dentries as fixed This is a followup from 056e4b04fc44a006d5529bafbf87b1d73296c665 Now the blk is marked as fixed so that the callers can write it back. Change-Id: I99c94bc39e772e0d0baab81bd741ce55416ce0e6 Signed-off-by: JP Abgrall Signed-off-by: Jaegeuk Kim --- fsck/fsck.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fsck/fsck.c b/fsck/fsck.c index 43b85d4..f6039b8 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -648,6 +648,7 @@ static int __chk_dentries(struct f2fs_sb_info *sbi, u32 *child_cnt, i, le32_to_cpu(dentry[i].ino)); clear_bit(i, bitmap); i++; + fixed = 1; continue; } } @@ -660,6 +661,7 @@ static int __chk_dentries(struct f2fs_sb_info *sbi, u32 *child_cnt, i, ftype); clear_bit(i, bitmap); i++; + fixed = 1; continue; } } -- 2.7.4