rust/library
Matthias Krüger 539fecb882
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.
2023-08-04 07:25:46 +02:00
..
alloc Add internal_features lint 2023-08-03 14:50:50 +02:00
backtrace@e1c49fbd61
core Auto merge of #108955 - Nilstrieb:dont-use-me-pls, r=oli-obk 2023-08-03 22:58:02 +00:00
panic_abort Add internal_features lint 2023-08-03 14:50:50 +02:00
panic_unwind Add internal_features lint 2023-08-03 14:50:50 +02:00
portable-simd remove repetitive words 2023-07-31 16:13:02 +08:00
proc_macro Add internal_features lint 2023-08-03 14:50:50 +02:00
profiler_builtins Add internal_features lint 2023-08-03 14:50:50 +02:00
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Rollup merge of #114373 - xstaticxgpx:dev, r=the8472 2023-08-04 07:25:46 +02:00
stdarch@d77878b729
sysroot
test Add internal_features lint 2023-08-03 14:50:50 +02:00
unwind Add internal_features lint 2023-08-03 14:50:50 +02:00