]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zpl_file.c
Linux 4.1 compat: use read_iter() / write_iter()
authorMatus Kral <matuskral@me.com>
Mon, 11 May 2015 23:26:18 +0000 (01:26 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 18 Jun 2015 19:06:59 +0000 (12:06 -0700)
commit57ae840077e6c061bc57fb4860491f50b604d360
tree4e5a171862d5bdc2216bd19cce93e673063be8b7
parentec1c11d5ee1a90ab4d5f544143bcf5a6c2455800
Linux 4.1 compat: use read_iter() / write_iter()

Linux 3.15 commit torvalds/linux@293bc98 introduced two new methods.
The ->read_iter() and ->write_iter() methods were designed to replace
the ->aio_read() and ->aio_write() interfaces.  Both interfaces were
preserved for several kernel releases in order to migrate all existing
consumers to the new interfaces.  But as of Linux 4.1 the legacy
interface has been retired and the ZFS code must be updated to use
the new interfaces.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3352
config/kernel-vfs-rw-iterate.m4 [new file with mode: 0644]
config/kernel.m4
module/zfs/zpl_file.c