[PATCH 5.6 122/166] ceph: re-org copy_file_range and fix some error paths