about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-04 07:25:46 +0200
committerGitHub <noreply@github.com>2023-08-04 07:25:46 +0200
commit539fecb88284e36945da2bdf5673498fe385d6c4 (patch)
tree4042a3d938f0ba1c1ac271092b25d73f310945fb /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp
parentfb150566637a4835d5d4554d4c6418606fc25e47 (diff)
parent2232fe8da3dcd4796e6db060ba61ba9c70a2a3f5 (diff)
downloadrust-539fecb88284e36945da2bdf5673498fe385d6c4.tar.gz
rust-539fecb88284e36945da2bdf5673498fe385d6c4.zip
Rollup merge of #114373 - xstaticxgpx:dev, r=the8472
unix/kernel_copy.rs: copy_file_range_candidate allows empty output files

This is for https://github.com/rust-lang/rust/issues/114341

The `meta.len() > 0` condition here is intended for inputs only, ie. when input is in the `/proc` filesystem as documented.

That inaccurately included empty output files which are then shunted to the sendfile() routine leading to higher than nescessary IO util in some cases, specifically with CoW filesystems like btrfs.

Simply, determine what is input or output given the passed boolean.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions