From: Badari Pulavarty Fix a bug in __xfs_file_write() which is causing writes to fail with -EINVAL. Signed-off-by: Badari Pulavarty Signed-off-by: Andrew Morton --- fs/xfs/linux-2.6/xfs_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/xfs/linux-2.6/xfs_file.c~vectorize-aio_read-aio_write-fileop-methods-xfs-fix fs/xfs/linux-2.6/xfs_file.c --- a/fs/xfs/linux-2.6/xfs_file.c~vectorize-aio_read-aio_write-fileop-methods-xfs-fix +++ a/fs/xfs/linux-2.6/xfs_file.c @@ -99,7 +99,7 @@ __xfs_file_write( BUG_ON(iocb->ki_pos != pos); if (unlikely(file->f_flags & O_DIRECT)) ioflags |= IO_ISDIRECT; - return bhv_vop_write(vp, iocb, &iov, nr_segs, &iocb->ki_pos, + return bhv_vop_write(vp, iocb, iov, nr_segs, &iocb->ki_pos, ioflags, NULL); } _