VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Matthew Wilcox (Oracle) <willy@infradead.org> 2020-09-10 08:26:17 -0700 committer: Darrick J. Wong <darrick.wong@oracle.com> 2020-09-10 08:26:17 -0700 commit: e6e7ca92623a43156100306861272e04d46385fc parent: c114bbc6c423a449a00780d2d6633432c0a0505f
Commit Summary:
iomap: Clear page error before beginning a write
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
index bcfc288dba3f..c95454784df4 100644
--- a/fs/iomap/buffered-io.c
+++ b/fs/iomap/buffered-io.c
@@ -578,6 +578,7 @@ __iomap_write_begin(struct inode *inode, loff_t pos, unsigned len, int flags,
 
 	if (PageUptodate(page))
 		return 0;
+	ClearPageError(page);
 
 	do {
 		iomap_adjust_read_range(inode, iop, &block_start,