/netbsd/external/cddl/osnet/dist/uts/common/fs/zfs/sys/ |
H A D | arc.h | 47 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 D | spa.h | 113 #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 D | ddt.h | 76 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 D | dnode.h | 100 #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 D | vdev_file.c | 136 *logical_ashift = SPA_MINBLOCKSHIFT; in vdev_file_open() 137 *physical_ashift = SPA_MINBLOCKSHIFT; in vdev_file_open()
|
H A D | zio.c | 167 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 D | dnode_sync.c | 366 (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 D | dnode.c | 59 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 D | dmu_diff.c | 145 (((uint64_t)dnp->dn_datablkszsec) << (SPA_MINBLOCKSHIFT + \
|
H A D | dmu_send.c | 106 (((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 D | zap_micro.c | 725 ASSERT(leaf_blockshift >= SPA_MINBLOCKSHIFT && in zap_create_flags() 727 indirect_blockshift >= SPA_MINBLOCKSHIFT && in zap_create_flags()
|
H A D | metaslab.c | 1670 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 D | spa_misc.c | 1961 dsize = (asize >> SPA_MINBLOCKSHIFT) * vd->vdev_deflate_ratio; in dva_get_dsize_sync()
|
H A D | dmu_tx.c | 239 min_bs = SPA_MINBLOCKSHIFT; in dmu_tx_count_write()
|
H A D | vdev.c | 976 (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 D | dmu.c | 2240 SPA_MINBLOCKSHIFT) + 1; in dmu_object_size_from_db()
|
H A D | zfs_vfsops.c | 2182 statp->f_blocks = (refdbytes + availbytes) >> SPA_MINBLOCKSHIFT; in zfs_statfs()
|
H A D | arc.c | 4077 for (i = 0; i < SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT; i++) { in arc_kmem_reap_now()
|
H A D | spa.c | 2354 ASSERT3U(spa->spa_min_ashift, >=, SPA_MINBLOCKSHIFT); in spa_load_impl()
|
/netbsd/external/cddl/osnet/dist/lib/libzpool/common/ |
H A D | kernel.c | 574 int sectors = len >> SPA_MINBLOCKSHIFT; in vn_rdwr() 576 SPA_MINBLOCKSHIFT; in vn_rdwr()
|
/netbsd/external/cddl/osnet/dist/cmd/zdb/ |
H A D | zdb.c | 1187 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 D | ztest.c | 172 .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()
|