summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-06-03 12:28:26 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2016-06-08 10:25:50 -0700
commit7f319975ccea80cf03377ff579b0a9e613308570 (patch)
tree1b4986a4afc4f71b9007b6809f3a8aadf3eabbb7 /fs/f2fs
parente589c2c477b44e06754508a4e8b883e5ae7294aa (diff)
downloadtalos-op-linux-7f319975ccea80cf03377ff579b0a9e613308570.tar.gz
talos-op-linux-7f319975ccea80cf03377ff579b0a9e613308570.zip
f2fs: set mapping error for EIO
If EIO occurred, we need to set all the mapping to avoid any further IOs. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index c9d6fe28ae1e..30dc448cae60 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -1243,7 +1243,7 @@ write:
/* we should bypass data pages to proceed the kworkder jobs */
if (unlikely(f2fs_cp_error(sbi))) {
- SetPageError(page);
+ mapping_set_error(page->mapping, -EIO);
goto out;
}
OpenPOWER on IntegriCloud