diff options
author | 2016-06-03 12:28:26 -0700 | |
---|---|---|
committer | 2016-06-08 10:25:50 -0700 | |
commit | 7f319975ccea80cf03377ff579b0a9e613308570 (patch) | |
tree | 1b4986a4afc4f71b9007b6809f3a8aadf3eabbb7 /fs/f2fs/data.c | |
parent | f2fs: control not to exceed # of cached nat entries (diff) | |
download | linux-7f319975ccea80cf03377ff579b0a9e613308570.tar.gz linux-7f319975ccea80cf03377ff579b0a9e613308570.tar.bz2 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/data.c')
-rw-r--r-- | fs/f2fs/data.c | 2 |
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; } |