mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-26 04:07:45 +03:00
Remove bcopy(), bzero(), bcmp()
bcopy() has a confusing argument order and is actually a move, not a copy; they're all deprecated since POSIX.1-2001 and removed in -2008, and we shim them out to mem*() on Linux anyway Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12996
This commit is contained in:
@@ -48,8 +48,8 @@
|
||||
* "vdev_remap" operation that executes a callback on each contiguous
|
||||
* segment of the new location. This function is used in multiple ways:
|
||||
*
|
||||
* - i/os to this vdev use the callback to determine where the
|
||||
* data is now located, and issue child i/os for each segment's new
|
||||
* - I/Os to this vdev use the callback to determine where the
|
||||
* data is now located, and issue child I/Os for each segment's new
|
||||
* location.
|
||||
*
|
||||
* - frees and claims to this vdev use the callback to free or claim
|
||||
@@ -1021,7 +1021,7 @@ vdev_indirect_mapping_duplicate_adjacent_entries(vdev_t *vd, uint64_t offset,
|
||||
|
||||
size_t copy_length = entries * sizeof (*first_mapping);
|
||||
duplicate_mappings = kmem_alloc(copy_length, KM_SLEEP);
|
||||
bcopy(first_mapping, duplicate_mappings, copy_length);
|
||||
memcpy(duplicate_mappings, first_mapping, copy_length);
|
||||
*copied_entries = entries;
|
||||
|
||||
return (duplicate_mappings);
|
||||
|
||||
Reference in New Issue
Block a user