Deleted Added
sdiff udiff text old ( 332547 ) new ( 339034 )
full compact
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

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

494}
495
496/* ARGSUSED */
497static int
498traverse_prefetcher(spa_t *spa, zilog_t *zilog, const blkptr_t *bp,
499 const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg)
500{
501 prefetch_data_t *pfd = arg;
502 arc_flags_t aflags = ARC_FLAG_NOWAIT | ARC_FLAG_PREFETCH;
503
504 ASSERT(pfd->pd_bytes_fetched >= 0);
505 if (bp == NULL)
506 return (0);
507 if (pfd->pd_cancel)
508 return (SET_ERROR(EINTR));
509
510 if (!prefetch_needed(pfd, bp))
511 return (0);

--- 200 unchanged lines hidden ---