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
Unified · Split
| @@ -178,6 +178,7 @@ int inode_init_always(struct super_block *sb, struct inode *inode) · 177 unmodified lines | |||
| 178 | mapping->a_ops = &empty_aops; | 178 | mapping->a_ops = &empty_aops; |
| 179 | mapping->host = inode; | 179 | mapping->host = inode; |
| 180 | mapping->flags = 0; | 180 | mapping->flags = 0; |
| 181 | mapping->wb_err = 0; | ||
| 181 | atomic_set(&mapping->i_mmap_writable, 0); | 182 | atomic_set(&mapping->i_mmap_writable, 0); |
| 182 | mapping_set_gfp_mask(mapping, GFP_HIGHUSER_MOVABLE); | 183 | mapping_set_gfp_mask(mapping, GFP_HIGHUSER_MOVABLE); |
| 183 | mapping->private_data = NULL; | 184 | mapping->private_data = NULL; |