Commit af41d3ee authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: avoid infinite loop at cp_error

This patch avoids an infinite loop in sync_dirty_inode_page when -EIO was
detected.
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 4a257ed6
...@@ -731,6 +731,9 @@ void sync_dirty_dir_inodes(struct f2fs_sb_info *sbi) ...@@ -731,6 +731,9 @@ void sync_dirty_dir_inodes(struct f2fs_sb_info *sbi)
struct dir_inode_entry *entry; struct dir_inode_entry *entry;
struct inode *inode; struct inode *inode;
retry: retry:
if (unlikely(f2fs_cp_error(sbi)))
return;
spin_lock(&sbi->dir_inode_lock); spin_lock(&sbi->dir_inode_lock);
head = &sbi->dir_inode_list; head = &sbi->dir_inode_list;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment