Lines Matching defs:last
498 * Compute the range spanned by two i/os, which is the endpoint of the last
509 zio_t *first, *last, *aio, *dio, *mandatory, *nio;
519 first = last = zio;
535 * We keep track of the last non-optional I/O.
541 * recording the last non-option I/O.
545 IO_SPAN(dio, last) <= zfs_vdev_aggregation_limit &&
555 while ((first->io_flags & ZIO_FLAG_OPTIONAL) && first != last) {
563 while ((dio = AVL_NEXT(t, last)) != NULL &&
566 IO_GAP(last, dio) <= maxgap) {
567 last = dio;
568 if (!(last->io_flags & ZIO_FLAG_OPTIONAL))
569 mandatory = last;
583 zio_t *nio = last;
597 dio = AVL_NEXT(t, last);
600 while (last != mandatory && last != first) {
601 ASSERT(last->io_flags & ZIO_FLAG_OPTIONAL);
602 last = AVL_PREV(t, last);
603 ASSERT(last != NULL);
607 if (first == last)
610 size = IO_SPAN(first, last);
639 } while (dio != last);