]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/vdev_indirect.c
Remove bcopy(), bzero(), bcmp()
[mirror_zfs.git] / module / zfs / vdev_indirect.c
index aeba1e99e6e52f723da18aacbd4da62d75f3b45b..9189d3f31241a56edd4998432438e6cbf4a894f9 100644 (file)
@@ -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);