]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/fs-writeback.c
Merge branch 'akpm-current/current'
[karo-tx-linux.git] / fs / fs-writeback.c
index 7378169e90be6ed485ac48d0cf633c8e37c4c3d2..206a68b1db1ab1b1f5a6ed6a611723f957e1e58b 100644 (file)
@@ -2149,7 +2149,12 @@ static void wait_sb_inodes(struct super_block *sb)
                iput(old_inode);
                old_inode = inode;
 
-               filemap_fdatawait(mapping);
+               /*
+                * We keep the error status of individual mapping so that
+                * applications can catch the writeback error using fsync(2).
+                * See filemap_fdatawait_keep_errors() for details.
+                */
+               filemap_fdatawait_keep_errors(mapping);
 
                cond_resched();