Index: kfusd/kfusd.c =================================================================== --- kfusd/kfusd.c (revision 8) +++ kfusd/kfusd.c (working copy) @@ -57,7 +57,11 @@ #include #endif +#include +/* config.h has been removed from 2.6.18+ thus including version.h first */ +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) #include +#endif #include #include #include @@ -68,7 +72,6 @@ #include #include #include -#include #include #include #include @@ -2308,11 +2311,12 @@ } -STATIC ssize_t fusd_writev(struct file *file, +STATIC ssize_t fusd_writev(struct kiocb *iocb, const struct iovec *iov, unsigned long count, loff_t *offset) { + struct file *file = iocb->ki_filp; if (count != 2) { RDEBUG(2, "fusd_writev: got illegal iov count of %ld", count); return -EINVAL; @@ -2509,7 +2513,7 @@ open: fusd_open, read: fusd_read, write: fusd_write, - writev: fusd_writev, + aio_write: fusd_writev, release: fusd_release, poll: fusd_poll, };