Home
last modified time | relevance | path

Searched refs:SPA_MINBLOCKSHIFT (Results 1 – 22 of 22) sorted by relevance

/netbsd/external/cddl/osnet/dist/uts/common/fs/zfs/sys/
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 Dspa.h113 #define SPA_MINBLOCKSHIFT 9 macro
116 #define SPA_MINBLOCKSIZE (1ULL << SPA_MINBLOCKSHIFT)
134 #define SPA_MINASHIFT SPA_MINBLOCKSHIFT
358 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
361 SPA_MINBLOCKSHIFT, 0, x)
370 BF64_GET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0)
372 BF64_SET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0, x)
380 BF64_GET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1))
384 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1, x); \
389 BF64_GET_SB((bp)->blk_prop, 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT, 1))
[all …]
H A Dddt.h76 BF64_GET_SB((ddk)->ddk_prop, 0, 16, SPA_MINBLOCKSHIFT, 1)
78 BF64_SET_SB((ddk)->ddk_prop, 0, 16, SPA_MINBLOCKSHIFT, 1, x)
81 BF64_GET_SB((ddk)->ddk_prop, 16, 16, SPA_MINBLOCKSHIFT, 1)
83 BF64_SET_SB((ddk)->ddk_prop, 16, 16, SPA_MINBLOCKSHIFT, 1, x)
H A Ddnode.h100 #define DN_MAX_LEVELS (2 + ((DN_MAX_OFFSET_SHIFT - SPA_MINBLOCKSHIFT) / \
107 (dnp)->dn_used : (dnp)->dn_used << SPA_MINBLOCKSHIFT)
/netbsd/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Dvdev_file.c136 *logical_ashift = SPA_MINBLOCKSHIFT; in vdev_file_open()
137 *physical_ashift = SPA_MINBLOCKSHIFT; in vdev_file_open()
H A Dzio.c167 for (c = 0; c < SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT; c++) { in zio_init()
168 size_t size = (c + 1) << SPA_MINBLOCKSHIFT; in zio_init()
283 size_t c = (size - 1) >> SPA_MINBLOCKSHIFT; in zio_buf_alloc_impl()
286 VERIFY3U(c, <, SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT); in zio_buf_alloc_impl()
318 size_t c = (size - 1) >> SPA_MINBLOCKSHIFT; in zio_data_buf_alloc()
320 VERIFY3U(c, <, SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT); in zio_data_buf_alloc()
331 size_t c = (size - 1) >> SPA_MINBLOCKSHIFT; in zio_buf_free()
333 VERIFY3U(c, <, SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT); in zio_buf_free()
344 size_t c = (size - 1) >> SPA_MINBLOCKSHIFT; in zio_data_buf_free()
346 VERIFY3U(c, <, SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT); in zio_data_buf_free()
[all …]
H A Ddnode_sync.c366 (dn->dn_phys->dn_datablkszsec << SPA_MINBLOCKSHIFT); in dnode_sync_free_range_impl()
587 dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT); in dnode_sync()
602 dn->dn_next_blksz[txgoff] >> SPA_MINBLOCKSHIFT == in dnode_sync()
606 dn->dn_next_blksz[txgoff] >> SPA_MINBLOCKSHIFT; in dnode_sync()
H A Ddnode.c59 int zfs_default_bs = SPA_MINBLOCKSHIFT;
254 ASSERT3U(dn->dn_datablkshift, >=, SPA_MINBLOCKSHIFT); in dnode_verify()
264 dn->dn_datablkszsec << SPA_MINBLOCKSHIFT); in dnode_verify()
397 ASSERT3U(size >> SPA_MINBLOCKSHIFT, <, in dnode_setdblksz()
400 dn->dn_datablkszsec = size >> SPA_MINBLOCKSHIFT; in dnode_setdblksz()
424 dnode_setdblksz(dn, dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT); in dnode_create()
1389 if (size >> SPA_MINBLOCKSHIFT == dn->dn_datablkszsec && ibs == 0) in dnode_set_blksz()
H A Ddmu_diff.c145 (((uint64_t)dnp->dn_datablkszsec) << (SPA_MINBLOCKSHIFT + \
H A Ddmu_send.c106 (((uint64_t)datablkszsec) << (SPA_MINBLOCKSHIFT + \
504 drro->drr_blksz = dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT; in dump_dnode()
521 (dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT), -1ULL) != 0) in dump_dnode()
588 record_size = dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT; in send_cb()
691 int blksz = dblkszsec << SPA_MINBLOCKSHIFT; in do_dump()
699 int blksz = dblkszsec << SPA_MINBLOCKSHIFT; in do_dump()
H A Dzap_micro.c725 ASSERT(leaf_blockshift >= SPA_MINBLOCKSHIFT && in zap_create_flags()
727 indirect_blockshift >= SPA_MINBLOCKSHIFT && in zap_create_flags()
H A Dmetaslab.c1670 int idx = MIN(shift - SPA_MINBLOCKSHIFT + i, in metaslab_set_fragmentation()
1776 for (int i = RANGE_TREE_HISTOGRAM_SIZE - 1; i >= SPA_MINBLOCKSHIFT; in metaslab_weight_from_range_tree()
H A Dspa_misc.c1961 dsize = (asize >> SPA_MINBLOCKSHIFT) * vd->vdev_deflate_ratio; in dva_get_dsize_sync()
H A Ddmu_tx.c239 min_bs = SPA_MINBLOCKSHIFT; in dmu_tx_count_write()
H A Dvdev.c976 (vdev_psize_to_asize(vd, 1 << 17) >> SPA_MINBLOCKSHIFT); in vdev_metaslab_init()
3129 dspace_delta = (dspace_delta >> SPA_MINBLOCKSHIFT) * in vdev_space_update()
H A Ddmu.c2240 SPA_MINBLOCKSHIFT) + 1; in dmu_object_size_from_db()
H A Dzfs_vfsops.c2182 statp->f_blocks = (refdbytes + availbytes) >> SPA_MINBLOCKSHIFT; in zfs_statfs()
H A Darc.c4077 for (i = 0; i < SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT; i++) { in arc_kmem_reap_now()
H A Dspa.c2354 ASSERT3U(spa->spa_min_ashift, >=, SPA_MINBLOCKSHIFT); in spa_load_impl()
/netbsd/external/cddl/osnet/dist/lib/libzpool/common/
H A Dkernel.c574 int sectors = len >> SPA_MINBLOCKSHIFT; in vn_rdwr()
576 SPA_MINBLOCKSHIFT; in vn_rdwr()
/netbsd/external/cddl/osnet/dist/cmd/zdb/
H A Dzdb.c1187 dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT); in blkid2offset()
2220 ashift = SPA_MINBLOCKSHIFT; in dump_label()
2229 ashift = SPA_MINBLOCKSHIFT; in dump_label()
2344 int idx = BP_GET_PSIZE(bp) >> SPA_MINBLOCKSHIFT; in zdb_count_block()
/netbsd/external/cddl/osnet/dist/cmd/ztest/
H A Dztest.c172 .zo_ashift = SPA_MINBLOCKSHIFT,
815 return (SPA_MINBLOCKSHIFT + ztest_random(5)); in ztest_get_ashift()
986 return (1 << (SPA_MINBLOCKSHIFT + block_shift)); in ztest_random_blocksize()