diff options
-rw-r--r-- | fs/f2fs/recovery.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index d7b67b86f607..7ca7aadaa607 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c | |||
@@ -472,7 +472,8 @@ int recover_fsync_data(struct f2fs_sb_info *sbi) | |||
472 | 472 | ||
473 | /* step #2: recover data */ | 473 | /* step #2: recover data */ |
474 | err = recover_data(sbi, &inode_list, CURSEG_WARM_NODE); | 474 | err = recover_data(sbi, &inode_list, CURSEG_WARM_NODE); |
475 | f2fs_bug_on(!list_empty(&inode_list)); | 475 | if (!err) |
476 | f2fs_bug_on(!list_empty(&inode_list)); | ||
476 | out: | 477 | out: |
477 | destroy_fsync_dnodes(&inode_list); | 478 | destroy_fsync_dnodes(&inode_list); |
478 | kmem_cache_destroy(fsync_entry_slab); | 479 | kmem_cache_destroy(fsync_entry_slab); |