From: Jaegeuk Kim Date: Fri, 3 Jun 2016 19:28:26 +0000 (-0700) Subject: f2fs: set mapping error for EIO X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7f319975ccea80cf03377ff579b0a9e613308570;p=linux-beck.git 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 --- 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; }