Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_traverse.c
Show First 20 Lines • Show All 493 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
/* ARGSUSED */ | /* ARGSUSED */ | ||||
static int | static int | ||||
traverse_prefetcher(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, | traverse_prefetcher(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, | ||||
const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) | const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) | ||||
{ | { | ||||
prefetch_data_t *pfd = arg; | prefetch_data_t *pfd = arg; | ||||
arc_flags_t aflags = ARC_FLAG_NOWAIT | ARC_FLAG_PREFETCH; | arc_flags_t aflags = ARC_FLAG_NOWAIT | ARC_FLAG_PREFETCH | | ||||
ARC_FLAG_PRESCIENT_PREFETCH; | |||||
ASSERT(pfd->pd_bytes_fetched >= 0); | ASSERT(pfd->pd_bytes_fetched >= 0); | ||||
if (bp == NULL) | if (bp == NULL) | ||||
return (0); | return (0); | ||||
if (pfd->pd_cancel) | if (pfd->pd_cancel) | ||||
return (SET_ERROR(EINTR)); | return (SET_ERROR(EINTR)); | ||||
if (!prefetch_needed(pfd, bp)) | if (!prefetch_needed(pfd, bp)) | ||||
return (0); | return (0); | ||||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |