Fix r336951 mismerge -- use of uninitialized variable.
Reported by: tsoome Approved by: re (gjb) MFC after: 3 days
This commit is contained in:
parent
2df98d5eec
commit
f3b515aea5
@ -2964,6 +2964,8 @@ dsl_scan_need_resilver(spa_t *spa, const dva_t *dva, size_t psize,
|
||||
{
|
||||
vdev_t *vd;
|
||||
|
||||
vd = vdev_lookup_top(spa, DVA_GET_VDEV(dva));
|
||||
|
||||
if (vd->vdev_ops == &vdev_indirect_ops) {
|
||||
/*
|
||||
* The indirect vdev can point to multiple
|
||||
@ -2974,6 +2976,7 @@ dsl_scan_need_resilver(spa_t *spa, const dva_t *dva, size_t psize,
|
||||
*/
|
||||
return (B_TRUE);
|
||||
}
|
||||
|
||||
if (DVA_GET_GANG(dva)) {
|
||||
/*
|
||||
* Gang members may be spread across multiple
|
||||
@ -2986,8 +2989,6 @@ dsl_scan_need_resilver(spa_t *spa, const dva_t *dva, size_t psize,
|
||||
return (B_TRUE);
|
||||
}
|
||||
|
||||
vd = vdev_lookup_top(spa, DVA_GET_VDEV(dva));
|
||||
|
||||
/*
|
||||
* Check if the txg falls within the range which must be
|
||||
* resilvered. DVAs outside this range can always be skipped.
|
||||
|
Loading…
Reference in New Issue
Block a user