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
..
2023-08-03 14:50:50 +02:00
2023-07-02 17:02:45 -07:00
2023-08-03 14:50:50 +02:00
2023-08-03 14:50:50 +02:00
2023-07-31 16:13:02 +08:00
2023-08-03 14:50:50 +02:00
2023-06-13 21:45:04 -07:00
2023-08-03 14:50:50 +02:00
2023-08-03 14:50:50 +02:00