HomeFreeBSD

copy_file_range: Call vn_rdwr() at least once

Description

copy_file_range: Call vn_rdwr() at least once

This ensures that we invoke VOP_READ on the input file even if it's
empty, which in turn helps ensure that filesystems update the atime of
the file.

PR: 274615
Reviewed by: olce, rmacklem, kib
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D43524

(cherry picked from commit 08f3d5b60cdfff434e391d96cdffc5a90c550b07)

Details

Provenance
markjAuthored on Apr 4 2024, 3:18 PM
Reviewer
olce
Differential Revision
D43524: copy_file_range: Call vn_rdwr() even for zero-length files
Parents
rG3f6515c20f38: bpf: Make BPF interop consistent with if_loop
Branches
Unknown
Tags
Unknown