Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f319975 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: set mapping error for EIO



If EIO occurred, we need to set all the mapping to avoid any further IOs.

Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent e589c2c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}