Lines Matching refs:leaf
295 vdev_t *leaf; in mmp_next_leaf() local
309 leaf = spa->spa_mmp.mmp_last_leaf; in mmp_next_leaf()
310 if (leaf == NULL) in mmp_next_leaf()
311 leaf = list_head(&spa->spa_leaf_list); in mmp_next_leaf()
312 starting_leaf = leaf; in mmp_next_leaf()
315 leaf = list_next(&spa->spa_leaf_list, leaf); in mmp_next_leaf()
316 if (leaf == NULL) in mmp_next_leaf()
317 leaf = list_head(&spa->spa_leaf_list); in mmp_next_leaf()
319 if (!vdev_writeable(leaf)) { in mmp_next_leaf()
321 } else if (leaf->vdev_mmp_pending != 0) { in mmp_next_leaf()
324 spa->spa_mmp.mmp_last_leaf = leaf; in mmp_next_leaf()
327 } while (leaf != starting_leaf); in mmp_next_leaf()