aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/f2fs/recovery.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c
index 60c8a5097058..294198775f8b 100644
--- a/fs/f2fs/recovery.c
+++ b/fs/f2fs/recovery.c
@@ -126,7 +126,6 @@ static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head)
126 126
127 entry = get_fsync_inode(head, ino_of_node(page)); 127 entry = get_fsync_inode(head, ino_of_node(page));
128 if (entry) { 128 if (entry) {
129 entry->blkaddr = blkaddr;
130 if (IS_INODE(page) && is_dent_dnode(page)) 129 if (IS_INODE(page) && is_dent_dnode(page))
131 set_inode_flag(F2FS_I(entry->inode), 130 set_inode_flag(F2FS_I(entry->inode),
132 FI_INC_LINK); 131 FI_INC_LINK);
@@ -150,10 +149,10 @@ static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head)
150 kmem_cache_free(fsync_entry_slab, entry); 149 kmem_cache_free(fsync_entry_slab, entry);
151 goto unlock_out; 150 goto unlock_out;
152 } 151 }
153
154 list_add_tail(&entry->list, head); 152 list_add_tail(&entry->list, head);
155 entry->blkaddr = blkaddr;
156 } 153 }
154 entry->blkaddr = blkaddr;
155
157 if (IS_INODE(page)) { 156 if (IS_INODE(page)) {
158 err = recover_inode(entry->inode, page); 157 err = recover_inode(entry->inode, page);
159 if (err == -ENOENT) { 158 if (err == -ENOENT) {