Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update exfat_super.c #47

Merged
merged 1 commit into from

3 participants

@dkpeall

The patching for kernel 3.15 also applies to 3.13.

@dkpeall dkpeall Update exfat_super.c
The patching for kernel 3.15 also applies to 3.13.
74331fe
@ngharo

Confirmed this fix works on Debian Testing kernel 3.14-1-amd64

@dorimanx dorimanx merged commit f2b3a5a into dorimanx:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 17, 2014
  1. @dkpeall

    Update exfat_super.c

    dkpeall authored
    The patching for kernel 3.15 also applies to 3.13.
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 exfat_super.c
View
8 exfat_super.c
@@ -1566,7 +1566,7 @@ static int exfat_write_end(struct file *file, struct address_space *mapping,
return err;
}
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)
static ssize_t exfat_direct_IO(int rw, struct kiocb *iocb, struct iov_iter *iter,
loff_t offset)
#else
@@ -1586,7 +1586,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,15,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)
if (EXFAT_I(inode)->mmu_private < (offset + iov_iter_count(iter)))
#else
#ifdef CONFIG_AIO_OPTIMIZATION
@@ -1599,7 +1599,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,15,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)
ret = blockdev_direct_IO(rw, iocb, inode, iter,
offset, exfat_get_block);
#else
@@ -1618,7 +1618,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,15,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)
exfat_write_failed(mapping, offset+iov_iter_count(iter));
#else
#ifdef CONFIG_AIO_OPTIMIZATION
Something went wrong with that request. Please try again.