summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormegari <[email protected]>2018-04-16 22:44:40 +0300
committerBrian Behlendorf <[email protected]>2018-04-16 12:44:40 -0700
commitd68ac65eb61acfd898262709a726bbcd7f5a31f1 (patch)
tree8f372279ed669b7f707d2246f6ffa818e0a6f7ca
parent9eb7b46ed03002dc8531a512ee1b52f6b5a86881 (diff)
Revert "OpenZFS 9036 - zfs: duplicate 'const' declaration specifier"
This reverts commit cbb893321545c2c9052787b556c9375fcb103979. The original change in OpenZFS 9036 did remove duplicate 'const' specifiers, but the ZoL port had already done what *should* have been done in OpenZFS 9036, which is to make the pointers themselves const. The port of the change to ZoL ended up doing an unnecessary removal of the constness of the pointers. Undo that. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tim Chase <[email protected]> Signed-off-by: Ari Sundholm <[email protected]> Closes #7444
-rw-r--r--module/zfs/vdev_indirect_mapping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/vdev_indirect_mapping.c b/module/zfs/vdev_indirect_mapping.c
index beb5ea4d6..dbd6a7635 100644
--- a/module/zfs/vdev_indirect_mapping.c
+++ b/module/zfs/vdev_indirect_mapping.c
@@ -136,8 +136,8 @@ vdev_indirect_mapping_size(vdev_indirect_mapping_t *vim)
static int
dva_mapping_overlap_compare(const void *v_key, const void *v_array_elem)
{
- const uint64_t *key = v_key;
- const vdev_indirect_mapping_entry_phys_t *array_elem =
+ const uint64_t * const key = v_key;
+ const vdev_indirect_mapping_entry_phys_t * const array_elem =
v_array_elem;
uint64_t src_offset = DVA_MAPPING_GET_SRC_OFFSET(array_elem);