HomeFreeBSD

Retire .write/.read file operations

Description

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

Details

Provenance
Chunwei Chen <tuxoko@gmail.com>Authored on Jan 27 2017, 6:43 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 27 2017, 6:43 PM
Parents
rG986dd8aacc9a: OpenZFS 5561 - support root pools on EFI/GPT partitioned disks
Branches
Unknown
Tags
Unknown