fs: use mapping_set_error instead of opencoded set_bit
[cascardo/linux.git] / fs / jbd2 / commit.c
index 5bb565f..31f8ca0 100644 (file)
@@ -269,8 +269,7 @@ static int journal_finish_inode_data_buffers(journal_t *journal,
                         * filemap_fdatawait_range(), set it again so
                         * that user process can get -EIO from fsync().
                         */
-                       set_bit(AS_EIO,
-                               &jinode->i_vfs_inode->i_mapping->flags);
+                       mapping_set_error(jinode->i_vfs_inode->i_mapping, -EIO);
 
                        if (!ret)
                                ret = err;