Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1417722
| From | Jaegeuk Kim <jaegeuk@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/7] f2fs: set mapping error for EIO |
| Date | 2016-06-08 19:30 +0200 |
| Message-ID | <rHPsJ-367-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index c9d6fe2..30dc448 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;
}
--
2.8.3
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/7] f2fs: set mapping error for EIO Jaegeuk Kim <jaegeuk@kernel.org> - 2016-06-08 19:30 +0200 [PATCH 4/7] f2fs: skip clean segment for gc Jaegeuk Kim <jaegeuk@kernel.org> - 2016-06-08 19:30 +0200 [PATCH 7/7] f2fs: don't need to flush unlinked dentry pages Jaegeuk Kim <jaegeuk@kernel.org> - 2016-06-08 19:30 +0200 [PATCH 5/7] f2fs: introduce force_lfs mount option Jaegeuk Kim <jaegeuk@kernel.org> - 2016-06-08 19:30 +0200
csiph-web