MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fzap_prefetch

Function fzap_prefetch

freebsd/contrib/openzfs/module/zfs/zap.c:977–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975}
976
977void
978fzap_prefetch(zap_name_t *zn)
979{
980 uint64_t blk;
981 zap_t *zap = zn->zn_zap;
982
983 uint64_t idx = ZAP_HASH_IDX(zn->zn_hash,
984 zap_f_phys(zap)->zap_ptrtbl.zt_shift);
985 if (zap_idx_to_blk(zap, idx, &blk) != 0)
986 return;
987 int bs = FZAP_BLOCK_SHIFT(zap);
988 dmu_prefetch(zap->zap_objset, zap->zap_object, 0, blk << bs, 1 << bs,
989 ZIO_PRIORITY_SYNC_READ);
990}
991
992/*
993 * Helper functions for consumers.

Callers 2

zap_prefetchFunction · 0.85
zap_prefetch_uint64Function · 0.85

Calls 3

zap_f_physFunction · 0.85
zap_idx_to_blkFunction · 0.85
dmu_prefetchFunction · 0.85

Tested by

no test coverage detected