diff --git a/exfat_super.c b/exfat_super.c index eea339b..20e60d7 100644 --- a/exfat_super.c +++ b/exfat_super.c @@ -1404,7 +1404,7 @@ static int exfat_write_end(struct file *file, struct address_space *mapping, return err; } -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0) static ssize_t exfat_direct_IO(int rw, struct kiocb *iocb, struct iov_iter *iter, loff_t offset) #else @@ -1420,7 +1420,7 @@ static ssize_t exfat_direct_IO(int rw, struct kiocb *iocb, ssize_t ret; if (rw == WRITE) { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0) if (EXFAT_I(inode)->mmu_private < (offset + iov_iter_count(iter))) #else if (EXFAT_I(inode)->mmu_private < (offset + iov_length(iov, nr_segs))) @@ -1428,7 +1428,7 @@ static ssize_t exfat_direct_IO(int rw, struct kiocb *iocb, return 0; } #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,00) -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0) ret = blockdev_direct_IO(rw, iocb, inode, iter, offset, exfat_get_block); #else @@ -1442,7 +1442,7 @@ static ssize_t exfat_direct_IO(int rw, struct kiocb *iocb, #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,34) if ((ret < 0) && (rw & WRITE)) -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0) exfat_write_failed(mapping, offset+iov_iter_count(iter)); #else exfat_write_failed(mapping, offset+iov_length(iov, nr_segs));