Skip to content

Commit

Permalink
Merge pull request zen-kernel#68 from Civil/fix_building_4.1
Browse files Browse the repository at this point in the history
Fix building with kernel 4.1
  • Loading branch information
dorimanx committed Jun 20, 2015
2 parents a858df5 + d2faf32 commit 0c3b682
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions exfat_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1336,9 +1336,11 @@ const struct file_operations exfat_file_operations = {
.write = do_sync_write,
.aio_read = generic_file_aio_read,
.aio_write = generic_file_aio_write,
#else
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0)
.read = new_sync_read,
.write = new_sync_write,
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)
.read_iter = generic_file_read_iter,
.write_iter = generic_file_write_iter,
#endif
Expand Down Expand Up @@ -1613,7 +1615,10 @@ static ssize_t exfat_direct_IO(int rw, struct kiocb *iocb,
#endif
return 0;
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)
ret = blockdev_direct_IO(iocb, inode, iter,
offset, exfat_get_block);
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)
ret = blockdev_direct_IO(rw, iocb, inode, iter,
offset, exfat_get_block);
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0)
Expand Down

0 comments on commit 0c3b682

Please sign in to comment.