History

Merge tag 'xfs-4.17-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux

Pull xfs fix from Darrick Wong: "Clear out i_mapping error state when we're reinitializing inodes. This last minute fix prevents writeback error state from persisting past the end of the in-core inode lifecycle and causing EIO errors to be reported to userspace when no error has occurred. This fix for the behavioral regression has been soaking in for-next for a while, but various fs developers persuaded me to try to get it upstream for 4.17 because the patch that broke things was introduced in 4.17-rc4" * tag 'xfs-4.17-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: fs: clear writeback errors in inode_init_always

Linus Torvalds committed 8 years ago

Commit 0512e012 parents dd52cb8 829bc781 file · +1 −0Browse files

Unified · Split

fs/inode.c+1−0
@@ -178,6 +178,7 @@ int inode_init_always(struct super_block *sb, struct inode *inode) · 177 unmodified lines
178178 mapping->a_ops = &empty_aops;
179179 mapping->host = inode;
180180 mapping->flags = 0;
181+ mapping->wb_err = 0;
181182 atomic_set(&mapping->i_mmap_writable, 0);
182183 mapping_set_gfp_mask(mapping, GFP_HIGHUSER_MOVABLE);
183184 mapping->private_data = NULL;