diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index a49fa44aea1f33c982bcd3dd7203ed702fb66652..aa501d3f93f1bcec3af38a24361ab61cda2cc052 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -1851,6 +1851,7 @@ static ssize_t ocfs2_file_aio_write(struct kiocb *iocb, if (ret) goto out_dio; + count = ocount; ret = generic_write_checks(file, ppos, &count, S_ISBLK(inode->i_mode)); if (ret)