From 7f319975ccea80cf03377ff579b0a9e613308570 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Fri, 3 Jun 2016 12:28:26 -0700 Subject: [PATCH] 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 --- 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 c9d6fe28ae1e..30dc448cae60 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1243,7 +1243,7 @@ static int f2fs_write_data_page(struct page *page, /* 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; }