Deleted Added
full compact
dmu_traverse.c (332547) dmu_traverse.c (339034)
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;
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
502 arc_flags_t aflags = ARC_FLAG_NOWAIT | ARC_FLAG_PREFETCH |
503 ARC_FLAG_PRESCIENT_PREFETCH;
504
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 ---
505 ASSERT(pfd->pd_bytes_fetched >= 0);
506 if (bp == NULL)
507 return (0);
508 if (pfd->pd_cancel)
509 return (SET_ERROR(EINTR));
510
511 if (!prefetch_needed(pfd, bp))
512 return (0);

--- 200 unchanged lines hidden ---