HomeFreeBSD

Fix O_APPEND for Linux 3.15 and older kernels

Description

Fix O_APPEND for Linux 3.15 and older kernels

When using a Linux kernel which predates the iov_iter interface the
O_APPEND flag should be applied in zpl_aio_write() via the call to
generic_write_checks(). The updated pos variable was incorrectly
ignored resulting in the current offset being used.

This issue should only realistically impact the RHEL/CentOS 7.x
kernels which are based on Linux 3.10.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13370
Closes #13377

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Apr 27 2022, 7:56 PM
GitHub <noreply@github.com>Committed on Apr 27 2022, 7:56 PM
Parents
rG7dde17e86093: Linux 5.18 compat: replace __set_page_dirty_nobuffers
Branches
Unknown
Tags
Unknown