diff options
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/recovery.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index b07e9b6ef376..207e2c865c7e 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c | |||
@@ -228,6 +228,9 @@ static void check_index_in_prev_nodes(struct f2fs_sb_info *sbi, | |||
228 | 228 | ||
229 | /* Deallocate previous index in the node page */ | 229 | /* Deallocate previous index in the node page */ |
230 | inode = f2fs_iget_nowait(sbi->sb, ino); | 230 | inode = f2fs_iget_nowait(sbi->sb, ino); |
231 | if (IS_ERR(inode)) | ||
232 | return; | ||
233 | |||
231 | truncate_hole(inode, bidx, bidx + 1); | 234 | truncate_hole(inode, bidx, bidx + 1); |
232 | iput(inode); | 235 | iput(inode); |
233 | } | 236 | } |