On Tue, Dec 13, 2022 at 03:13:39PM +0200, Amir Goldstein wrote:
Greg,
The recent history of copy_file_range() API is somewhat convoluted. The API changes are documented in copy_file_range(2) man page. I've just posted a man page update patch [1] to fix some wrong kernel version references in the man page.
The problem is that it took many kernel releases to get reports on the regression from v5.3 and yet more releases (v5.12..v5.19) to work on the solution and get it merged.
This situation leads to confusion among users as can be seen in [2]. You've already picked the patch [1/2] to 5.15.y and I sent you a request to pick patch [2/2] (from v6.1) as well.
Following are backports of the two patches to 5.10.y, which I verified with the relevant test in fstests.
All now queued up, thanks.
greg k-h