diff options
-rw-r--r-- | fs/f2fs/recovery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index 294198775f8b..4d895149a6f0 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c | |||
@@ -381,6 +381,7 @@ int recover_fsync_data(struct f2fs_sb_info *sbi) | |||
381 | INIT_LIST_HEAD(&inode_list); | 381 | INIT_LIST_HEAD(&inode_list); |
382 | 382 | ||
383 | /* step #1: find fsynced inode numbers */ | 383 | /* step #1: find fsynced inode numbers */ |
384 | sbi->por_doing = 1; | ||
384 | err = find_fsync_dnodes(sbi, &inode_list); | 385 | err = find_fsync_dnodes(sbi, &inode_list); |
385 | if (err) | 386 | if (err) |
386 | goto out; | 387 | goto out; |
@@ -389,13 +390,12 @@ int recover_fsync_data(struct f2fs_sb_info *sbi) | |||
389 | goto out; | 390 | goto out; |
390 | 391 | ||
391 | /* step #2: recover data */ | 392 | /* step #2: recover data */ |
392 | sbi->por_doing = 1; | ||
393 | err = recover_data(sbi, &inode_list, CURSEG_WARM_NODE); | 393 | err = recover_data(sbi, &inode_list, CURSEG_WARM_NODE); |
394 | sbi->por_doing = 0; | ||
395 | BUG_ON(!list_empty(&inode_list)); | 394 | BUG_ON(!list_empty(&inode_list)); |
396 | out: | 395 | out: |
397 | destroy_fsync_dnodes(sbi, &inode_list); | 396 | destroy_fsync_dnodes(sbi, &inode_list); |
398 | kmem_cache_destroy(fsync_entry_slab); | 397 | kmem_cache_destroy(fsync_entry_slab); |
398 | sbi->por_doing = 0; | ||
399 | write_checkpoint(sbi, false); | 399 | write_checkpoint(sbi, false); |
400 | return err; | 400 | return err; |
401 | } | 401 | } |