aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/vdev_label.c
diff options
context:
space:
mode:
authorIsaac Huang <[email protected]>2017-10-05 20:30:02 -0600
committerBrian Behlendorf <[email protected]>2017-10-05 19:30:02 -0700
commiteea2e2413220b34a3da0911dee554df20bdd0c47 (patch)
tree4f54e4848cabb13fe9aba8639d946150242c99bd /module/zfs/vdev_label.c
parentc11f1004d19dd74e4be8869d211639413293dea0 (diff)
Use linear abd in vdev_copy_uberblocks()
The vdev_copy_uberblocks() function should use abd_alloc_linear() to allocate ub_abd, because abd_to_buf(ub_abd)) is used later. Reviewed-by: George Melikov <[email protected]> Reviewed-by: Giuseppe Di Natale <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Isaac Huang <[email protected]> Closes #6718 Closes #6713
Diffstat (limited to 'module/zfs/vdev_label.c')
-rw-r--r--module/zfs/vdev_label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/vdev_label.c b/module/zfs/vdev_label.c
index f7a994255..8192431f9 100644
--- a/module/zfs/vdev_label.c
+++ b/module/zfs/vdev_label.c
@@ -1164,7 +1164,7 @@ vdev_copy_uberblocks(vdev_t *vd)
spa_config_enter(vd->vdev_spa, locks, FTAG, RW_READER);
- ub_abd = abd_alloc(VDEV_UBERBLOCK_SIZE(vd), B_TRUE);
+ ub_abd = abd_alloc_linear(VDEV_UBERBLOCK_SIZE(vd), B_TRUE);
write_zio = zio_root(vd->vdev_spa, NULL, NULL, flags);
for (int n = 0; n < VDEV_UBERBLOCK_COUNT(vd); n++) {