Deleted Added
full compact
metaslab.c (185029) metaslab.c (208370)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 767 unchanged lines hidden (view full) ---

776 rotor = mg;
777top:
778 all_zero = B_TRUE;
779 do {
780 vd = mg->mg_vd;
781 /*
782 * Don't allocate from faulted devices.
783 */
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 767 unchanged lines hidden (view full) ---

776 rotor = mg;
777top:
778 all_zero = B_TRUE;
779 do {
780 vd = mg->mg_vd;
781 /*
782 * Don't allocate from faulted devices.
783 */
784 if (!vdev_writeable(vd))
784 if (!vdev_allocatable(vd))
785 goto next;
786 /*
787 * Avoid writing single-copy data to a failing vdev
788 */
789 if ((vd->vdev_stat.vs_write_errors > 0 ||
790 vd->vdev_state < VDEV_STATE_HEALTHY) &&
791 d == 0 && dshift == 3) {
792 all_zero = B_FALSE;

--- 257 unchanged lines hidden ---
785 goto next;
786 /*
787 * Avoid writing single-copy data to a failing vdev
788 */
789 if ((vd->vdev_stat.vs_write_errors > 0 ||
790 vd->vdev_state < VDEV_STATE_HEALTHY) &&
791 d == 0 && dshift == 3) {
792 all_zero = B_FALSE;

--- 257 unchanged lines hidden ---