vdev.c (209962) | vdev.c (211931) |
---|---|
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 --- 1759 unchanged lines hidden (view full) --- 1768 nvlist_free(label); 1769 return (0); 1770} 1771 1772void 1773vdev_sync_done(vdev_t *vd, uint64_t txg) 1774{ 1775 metaslab_t *msp; | 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 --- 1759 unchanged lines hidden (view full) --- 1768 nvlist_free(label); 1769 return (0); 1770} 1771 1772void 1773vdev_sync_done(vdev_t *vd, uint64_t txg) 1774{ 1775 metaslab_t *msp; |
1776 boolean_t reassess = !txg_list_empty(&vd->vdev_ms_list, TXG_CLEAN(txg)); |
|
1776 1777 while (msp = txg_list_remove(&vd->vdev_ms_list, TXG_CLEAN(txg))) 1778 metaslab_sync_done(msp, txg); | 1777 1778 while (msp = txg_list_remove(&vd->vdev_ms_list, TXG_CLEAN(txg))) 1779 metaslab_sync_done(msp, txg); |
1780 1781 if (reassess) 1782 metaslab_sync_reassess(vd->vdev_mg); |
|
1779} 1780 1781void 1782vdev_sync(vdev_t *vd, uint64_t txg) 1783{ 1784 spa_t *spa = vd->vdev_spa; 1785 vdev_t *lvd; 1786 metaslab_t *msp; --- 869 unchanged lines hidden --- | 1783} 1784 1785void 1786vdev_sync(vdev_t *vd, uint64_t txg) 1787{ 1788 spa_t *spa = vd->vdev_spa; 1789 vdev_t *lvd; 1790 metaslab_t *msp; --- 869 unchanged lines hidden --- |