X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=fs%2Fjbd2%2Fcommit.c;h=31f8ca0466392eef588a2e61fbc5b34b132c5345;hb=1573d2caf713874cfe0d1336c823d0fb548d8bed;hp=5bb565f9989ccfde3ba9726e1d39285e5a408d60;hpb=01b3add8d665428109e901dae2f8df04d255aab1;p=cascardo%2Flinux.git diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c index 5bb565f9989c..31f8ca046639 100644 --- a/fs/jbd2/commit.c +++ b/fs/jbd2/commit.c @@ -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;