summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2014-10-17 14:14:16 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2014-11-03 16:07:31 -0800
commitaf41d3ee00bf97bfc3bd64bce6d7a92e85955e98 (patch)
tree317fa5d31729a361bf39727701de5705fcbda239 /fs/f2fs/checkpoint.c
parent4a257ed677cb68a2096358e58b61efacf85d5f16 (diff)
downloadop-kernel-dev-af41d3ee00bf97bfc3bd64bce6d7a92e85955e98.zip
op-kernel-dev-af41d3ee00bf97bfc3bd64bce6d7a92e85955e98.tar.gz
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: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r--fs/f2fs/checkpoint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index dd10a03..ca514d5 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -731,6 +731,9 @@ void sync_dirty_dir_inodes(struct f2fs_sb_info *sbi)
struct dir_inode_entry *entry;
struct inode *inode;
retry:
+ if (unlikely(f2fs_cp_error(sbi)))
+ return;
+
spin_lock(&sbi->dir_inode_lock);
head = &sbi->dir_inode_list;
OpenPOWER on IntegriCloud