]> granicus.if.org Git - zfs/commit
Retire .write/.read file operations
authorChunwei Chen <tuxoko@gmail.com>
Fri, 27 Jan 2017 18:43:39 +0000 (10:43 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 27 Jan 2017 18:43:39 +0000 (10:43 -0800)
commit933ec999511f3d29de005bfa8966ae007b161c0f
tree9a95099ddf19af2ad57b6b0864e85bacf025aa74
parent986dd8aacc9a00ceedf61f63cbe641786f540611
Retire .write/.read file operations

The .write/.read file operations callbacks can be retired since
support for .read_iter/.write_iter and .aio_read/.aio_write has
been added.  The vfs_write()/vfs_read() entry functions will
select the correct interface for the kernel.  This is desirable
because all VFS write/read operations now rely on common code.

This change also add the generic write checks to make sure that
ulimits are enforced correctly on write.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes #5587
Closes #5673
config/kernel-vfs-rw-iterate.m4
config/kernel.m4
module/zfs/zpl_file.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/large_files/Makefile.am
tests/zfs-tests/tests/functional/large_files/large_files_002_pos.ksh [new file with mode: 0755]