projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e589c2c
)
f2fs: set mapping error for EIO
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 3 Jun 2016 19:28:26 +0000
(12:28 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 8 Jun 2016 17:25:50 +0000
(10:25 -0700)
If EIO occurred, we need to set all the mapping to avoid any further IOs.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/data.c
b/fs/f2fs/data.c
index c9d6fe28ae1e3dad715850e4fc222073c86c7e35..30dc448cae6073e3ffc0a42de3281ede98bba000 100644
(file)
--- 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;
}