Searched refs:SPA_MINBLOCKSHIFT (Results 1 - 25 of 32) sorted by relevance

12

/illumos-gate/usr/src/test/zfs-tests/tests/perf/scripts/
H A Dprefetch_io.d28 #define SPA_MINBLOCKSHIFT 9
30 #define HDR_GET_LSIZE(hdr) ((hdr)->b_lsize << SPA_MINBLOCKSHIFT)
31 #define HDR_GET_PSIZE(hdr) ((hdr)->b_psize << SPA_MINBLOCKSHIFT)
/illumos-gate/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dspa.h63 #define SPA_MINBLOCKSHIFT 9 macro
65 #define SPA_MINBLOCKSIZE (1ULL << SPA_MINBLOCKSHIFT)
179 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
182 SPA_MINBLOCKSHIFT, 0, x)
191 BF64_GET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0)
193 BF64_SET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0, x)
199 BF64_GET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1)
201 BF64_SET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1, x)
204 BF64_GET_SB((bp)->blk_prop, 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT, 1)
206 BF64_SET_SB((bp)->blk_prop, 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT,
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dvdev_indirect_mapping.h49 BF64_GET_SB((vimep)->vimep_src, 0, 63, SPA_MINBLOCKSHIFT, 0)
51 BF64_SET_SB((vimep)->vimep_src, 0, 63, SPA_MINBLOCKSHIFT, 0, x)
H A Darc.h47 ASSERT(IS_P2ALIGNED(x, 1U << SPA_MINBLOCKSHIFT)); \
48 (hdr)->b_lsize = ((x) >> SPA_MINBLOCKSHIFT); \
52 ASSERT(IS_P2ALIGNED((x), 1U << SPA_MINBLOCKSHIFT)); \
53 (hdr)->b_psize = ((x) >> SPA_MINBLOCKSHIFT); \
56 #define HDR_GET_LSIZE(hdr) ((hdr)->b_lsize << SPA_MINBLOCKSHIFT)
57 #define HDR_GET_PSIZE(hdr) ((hdr)->b_psize << SPA_MINBLOCKSHIFT)
H A Dddt.h80 BF64_GET_SB((ddk)->ddk_prop, 0, 16, SPA_MINBLOCKSHIFT, 1)
82 BF64_SET_SB((ddk)->ddk_prop, 0, 16, SPA_MINBLOCKSHIFT, 1, x)
85 BF64_GET_SB((ddk)->ddk_prop, 16, 16, SPA_MINBLOCKSHIFT, 1)
87 BF64_SET_SB((ddk)->ddk_prop, 16, 16, SPA_MINBLOCKSHIFT, 1, x)
H A Dspa.h120 #define SPA_MINBLOCKSHIFT 9 macro
123 #define SPA_MINBLOCKSIZE (1ULL << SPA_MINBLOCKSHIFT)
371 * bp's they are stored in units of SPA_MINBLOCKSHIFT.
444 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
447 SPA_MINBLOCKSHIFT, 0, x)
457 BF64_GET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0)
459 BF64_SET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0, x)
467 BF64_GET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1))
471 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1, x); \
476 BF64_GET_SB((bp)->blk_prop, 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT,
[all...]
H A Ddnode.h119 #define DN_MAX_LEVELS (2 + ((DN_MAX_OFFSET_SHIFT - SPA_MINBLOCKSHIFT) / \
130 (dnp)->dn_used : (dnp)->dn_used << SPA_MINBLOCKSHIFT)
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dzfsimpl.h119 #define SPA_MINBLOCKSHIFT 9 macro
122 #define SPA_MINBLOCKSIZE (1ULL << SPA_MINBLOCKSHIFT)
271 * bp's they are stored in units of SPA_MINBLOCKSHIFT.
332 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
335 SPA_MINBLOCKSHIFT, 0, x)
344 BF64_GET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0)
346 BF64_SET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0, x)
354 BF64_GET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1))
358 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1, x); \
362 BF64_GET_SB((bp)->blk_prop, 16, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT,
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c285 offset = (sector << SPA_MINBLOCKSHIFT) +
549 dn->dn_datablkszsec << SPA_MINBLOCKSHIFT);
774 size = zap_dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT;
805 uint32_t size = zap_dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT;
866 blksz = mdn->dn_datablkszsec << SPA_MINBLOCKSHIFT;
1536 sector += (VDEV_SKIP_SIZE >> SPA_MINBLOCKSHIFT);
1631 uint64_t adjpl = (uint64_t)part_length << SPA_MINBLOCKSHIFT;
1664 label) >> SPA_MINBLOCKSHIFT;
1668 ((VDEV_SKIP_SIZE + VDEV_PHYS_SIZE) >> SPA_MINBLOCKSHIFT),
1843 blksz = DNODE->dn_datablkszsec << SPA_MINBLOCKSHIFT;
[all...]
H A Dfsys_zfs.h112 ((offset + VDEV_LABEL_START_SIZE) >> SPA_MINBLOCKSHIFT)
/illumos-gate/usr/src/lib/libzpool/common/
H A Dkernel.c206 int sectors = len >> SPA_MINBLOCKSHIFT;
208 SPA_MINBLOCKSHIFT;
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzio.c70 kmem_cache_t *zio_buf_cache[SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT];
71 kmem_cache_t *zio_data_buf_cache[SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT];
134 for (c = 0; c < SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT; c++) {
135 size_t size = (c + 1) << SPA_MINBLOCKSHIFT;
197 for (c = 0; c < SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT; c++) {
232 size_t c = (size - 1) >> SPA_MINBLOCKSHIFT;
234 VERIFY3U(c, <, SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT);
248 size_t c = (size - 1) >> SPA_MINBLOCKSHIFT;
250 VERIFY3U(c, <, SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT);
258 size_t c = (size - 1) >> SPA_MINBLOCKSHIFT;
[all...]
H A Ddmu_diff.c104 (((uint64_t)dnp->dn_datablkszsec) << (SPA_MINBLOCKSHIFT + \
H A Ddnode_sync.c405 (dn->dn_phys->dn_datablkszsec << SPA_MINBLOCKSHIFT);
658 dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT);
673 dn->dn_next_blksz[txgoff] >> SPA_MINBLOCKSHIFT ==
677 dn->dn_next_blksz[txgoff] >> SPA_MINBLOCKSHIFT;
H A Dvdev_file.c142 *ashift = SPA_MINBLOCKSHIFT;
H A Ddmu_send.c73 (((uint64_t)datablkszsec) << (SPA_MINBLOCKSHIFT + \
514 drro->drr_blksz = dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT;
563 (dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT), DMU_OBJECT_END) != 0)
691 record_size = dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT;
832 int blksz = dblkszsec << SPA_MINBLOCKSHIFT;
840 int blksz = dblkszsec << SPA_MINBLOCKSHIFT;
H A Ddnode.c81 int zfs_default_bs = SPA_MINBLOCKSHIFT;
287 ASSERT3U(dn->dn_datablkshift, >=, SPA_MINBLOCKSHIFT);
297 dn->dn_datablkszsec << SPA_MINBLOCKSHIFT);
434 ASSERT3U(size >> SPA_MINBLOCKSHIFT, <,
437 dn->dn_datablkszsec = size >> SPA_MINBLOCKSHIFT;
463 dnode_setdblksz(dn, dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT);
1729 if (size >> SPA_MINBLOCKSHIFT == dn->dn_datablkszsec && ibs == 0)
H A Dspa_log_spacemap.c962 * and SPA_MINBLOCKSHIFT as the shift, to make the space map
968 0, UINT64_MAX, SPA_MINBLOCKSHIFT));
1124 sls->sls_sm_obj, 0, UINT64_MAX, SPA_MINBLOCKSHIFT);
H A Dzfs_vfsops.c1941 statp->f_frsize = 1UL << SPA_MINBLOCKSHIFT;
1950 statp->f_blocks = (refdbytes + availbytes) >> SPA_MINBLOCKSHIFT;
1951 statp->f_bfree = availbytes >> SPA_MINBLOCKSHIFT;
H A Dzap_micro.c781 ASSERT(leaf_blockshift >= SPA_MINBLOCKSHIFT &&
783 indirect_blockshift >= SPA_MINBLOCKSHIFT &&
H A Dspa_misc.c1972 dsize = (asize >> SPA_MINBLOCKSHIFT) * vd->vdev_deflate_ratio;
H A Dvdev_removal.c1301 ASSERT3U(spa->spa_max_ashift, >=, SPA_MINBLOCKSHIFT);
/illumos-gate/usr/src/boot/lib/libstand/zfs/
H A Dzfsimpl.c632 bsize = vim->vim_dn->dn_datablkszsec << SPA_MINBLOCKSHIFT;
1894 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT;
2135 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT;
2222 size_t size = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT;
2278 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT;
2442 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT;
H A Dzfs.c222 size_t bsize = fp->f_dnode.dn_datablkszsec << SPA_MINBLOCKSHIFT;
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c1167 sls->sls_sm_obj, 0, UINT64_MAX, SPA_MINBLOCKSHIFT));
1449 dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT);
2842 ashift = SPA_MINBLOCKSHIFT;
2852 ashift = SPA_MINBLOCKSHIFT;
2987 unsigned idx = BP_GET_PSIZE(bp) >> SPA_MINBLOCKSHIFT;
3249 sls->sls_sm_obj, 0, UINT64_MAX, SPA_MINBLOCKSHIFT));

Completed in 280 milliseconds

12