Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/openzfs/include/sys/
H A Darc.h58 ASSERT(IS_P2ALIGNED(x, 1U << SPA_MINBLOCKSHIFT)); \
59 (hdr)->b_lsize = ((x) >> SPA_MINBLOCKSHIFT); \
63 ASSERT(IS_P2ALIGNED((x), 1U << SPA_MINBLOCKSHIFT)); \
64 (hdr)->b_psize = ((x) >> SPA_MINBLOCKSHIFT); \
69 ASSERT(IS_P2ALIGNED((x), 1U << SPA_MINBLOCKSHIFT)); \
70 (hdr)->b_l2size = ((x) >> SPA_MINBLOCKSHIFT); \
73 #define HDR_GET_LSIZE(hdr) ((hdr)->b_lsize << SPA_MINBLOCKSHIFT)
74 #define HDR_GET_PSIZE(hdr) ((hdr)->b_psize << SPA_MINBLOCKSHIFT)
75 #define HDR_GET_L2SIZE(hdr) ((hdr)->b_l2size << SPA_MINBLOCKSHIFT)
H A Ddmu_redact.h36 return (BF64_GET_SB((rbp)->rbp_size_count, 48, 16, SPA_MINBLOCKSHIFT, in redact_block_get_size()
44 BF64_SET_SB((rbp)->rbp_size_count, 48, 16, SPA_MINBLOCKSHIFT, 0, size); in redact_block_set_size()
H A Dddt.h111 BF64_GET_SB((ddk)->ddk_prop, 0, 16, SPA_MINBLOCKSHIFT, 1)
113 BF64_SET_SB((ddk)->ddk_prop, 0, 16, SPA_MINBLOCKSHIFT, 1, x)
116 BF64_GET_SB((ddk)->ddk_prop, 16, 16, SPA_MINBLOCKSHIFT, 1)
118 BF64_SET_SB((ddk)->ddk_prop, 16, 16, SPA_MINBLOCKSHIFT, 1, x)
H A Duberblock_impl.h97 BF64_GET_SB((ub)->ub_raidz_reflow_info, 0, 55, SPA_MINBLOCKSHIFT, 0)
99 BF64_SET_SB((ub)->ub_raidz_reflow_info, 0, 55, SPA_MINBLOCKSHIFT, 0, x)
H A Dvdev_indirect_mapping.h50 BF64_GET_SB((vimep)->vimep_src, 0, 63, SPA_MINBLOCKSHIFT, 0)
52 BF64_SET_SB((vimep)->vimep_src, 0, 63, SPA_MINBLOCKSHIFT, 0, x)
H A Darc_impl.h320 1ULL << SPA_MINBLOCKSHIFT), "l2arc_log_blk_phys_t misaligned");
345 BF64_GET_SB((field), 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1)
347 BF64_SET_SB((field), 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1, x)
349 BF64_GET_SB((field), 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT, 1)
351 BF64_SET_SB((field), 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT, 1, x)
H A Dspa.h392 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
395 SPA_MINBLOCKSHIFT, 0, x)
402 BF64_GET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0)
404 BF64_SET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0, x)
412 BF64_GET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1))
416 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1, x); \
421 BF64_GET_SB((bp)->blk_prop, 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT, 1))
425 16, SPA_PSIZEBITS, SPA_MINBLOCKSHIFT, 1, x); \
H A Ddnode.h121 #define DN_MAX_LEVELS (DIV_ROUND_UP(DN_MAX_OFFSET_SHIFT - SPA_MINBLOCKSHIFT, \
136 (dnp)->dn_used : (dnp)->dn_used << SPA_MINBLOCKSHIFT)
/freebsd/sys/cddl/boot/zfs/
H A Dzfsimpl.h132 #define SPA_MINBLOCKSHIFT 9 macro
135 #define SPA_MINBLOCKSIZE (1ULL << SPA_MINBLOCKSHIFT)
345 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
348 SPA_MINBLOCKSHIFT, 0, x)
357 BF64_GET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0)
359 BF64_SET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0, x)
367 BF64_GET_SB((bp)->blk_prop, 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1))
371 0, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1, x); \
375 BF64_GET_SB((bp)->blk_prop, 16, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1)
377 BF64_SET_SB((bp)->blk_prop, 16, SPA_LSIZEBITS, SPA_MINBLOCKSHIFT, 1, x)
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzio.c81 kmem_cache_t *zio_buf_cache[SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT];
82 kmem_cache_t *zio_data_buf_cache[SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT];
84 static uint64_t zio_buf_cache_allocs[SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT];
85 static uint64_t zio_buf_cache_frees[SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT];
219 for (c = 0; c < SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT; c++) { in zio_init()
220 size_t size = (c + 1) << SPA_MINBLOCKSHIFT; in zio_init()
300 size_t n = SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT; in zio_fini()
306 (int)((i + 1) << SPA_MINBLOCKSHIFT), in zio_fini()
390 size_t asize = (c + 1) << SPA_MINBLOCKSHIFT; in zio_buf_put_canary()
391 if (c + 1 < SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT && in zio_buf_put_canary()
[all …]
H A Dvdev_file.c52 static uint_t vdev_file_logical_ashift = SPA_MINBLOCKSHIFT;
53 static uint_t vdev_file_physical_ashift = SPA_MINBLOCKSHIFT;
H A Ddnode_sync.c436 (dn->dn_phys->dn_datablkszsec << SPA_MINBLOCKSHIFT); in dnode_sync_free_range_impl()
707 dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT); in dnode_sync()
722 dn->dn_next_blksz[txgoff] >> SPA_MINBLOCKSHIFT == in dnode_sync()
726 dn->dn_next_blksz[txgoff] >> SPA_MINBLOCKSHIFT; in dnode_sync()
H A Dvdev_raidz_math.c483 bench_rm = vdev_raidz_map_alloc(bench_zio, SPA_MINBLOCKSHIFT, in benchmark_raidz()
492 bench_rm = vdev_raidz_map_alloc(bench_zio, SPA_MINBLOCKSHIFT, in benchmark_raidz()
H A Ddmu_diff.c109 (((uint64_t)dnp->dn_datablkszsec) << (SPA_MINBLOCKSHIFT + \
H A Ddmu_redact.c351 record->datablksz = dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT; in redact_cb()
406 return (zbookmark_compare(dbss1 >> SPA_MINBLOCKSHIFT, 0, in redact_range_compare()
407 dbss2 >> SPA_MINBLOCKSHIFT, 0, &z1, &z2)); in redact_range_compare()
H A Ddnode.c82 int zfs_default_bs = SPA_MINBLOCKSHIFT;
418 ASSERT3U(dn->dn_datablkshift, >=, SPA_MINBLOCKSHIFT); in dnode_verify()
428 dn->dn_datablkszsec << SPA_MINBLOCKSHIFT); in dnode_verify()
574 ASSERT3U(size >> SPA_MINBLOCKSHIFT, <, in dnode_setdblksz()
577 dn->dn_datablkszsec = size >> SPA_MINBLOCKSHIFT; in dnode_setdblksz()
600 dnode_setdblksz(dn, dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT); in dnode_create()
H A Dspa_log_spacemap.c994 0, UINT64_MAX, SPA_MINBLOCKSHIFT)); in spa_generate_syncing_log_sm()
1166 UINT64_MAX, SPA_MINBLOCKSHIFT); in spa_ld_log_sm_data()
H A Ddmu_send.c747 drro->drr_blksz = dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT; in dump_dnode()
798 (dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT), DMU_OBJECT_END) != 0) in dump_dnode()
1152 BP_GET_LSIZE(bp) : dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT); in send_cb()
1858 SPA_MINBLOCKSHIFT; in send_reader_thread()
/freebsd/stand/libsa/zfs/
H A Dzfsimpl.c399 bsize = vim->vim_dn->dn_datablkszsec << SPA_MINBLOCKSHIFT; in vdev_indirect_mapping_entry()
2323 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in dnode_read()
2692 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in fzap_lookup()
2730 size_t size = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in zap_lookup()
2793 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in fzap_list()
2885 size_t size = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in zap_list()
2969 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in fzap_rlookup()
3025 size_t size = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in zap_rlookup()
3276 size = child_dir_zap.dn_datablkszsec << SPA_MINBLOCKSHIFT; in zfs_callback_dataset()
3448 size = dir.dn_datablkszsec << SPA_MINBLOCKSHIFT; in check_mos_features()
/freebsd/sys/contrib/openzfs/lib/libzpool/
H A Dkernel.c1195 sectors = count >> SPA_MINBLOCKSHIFT; in zfs_file_pwrite()
1196 split = (sectors > 0 ? rand() % sectors : 0) << SPA_MINBLOCKSHIFT; in zfs_file_pwrite()
/freebsd/sys/contrib/openzfs/include/sys/fs/
H A Dzfs.h1928 #define SPA_MINBLOCKSHIFT 9 macro
1931 #define SPA_MINBLOCKSIZE (1ULL << SPA_MINBLOCKSHIFT)
/freebsd/sys/contrib/openzfs/cmd/raidz_test/
H A Draidz_test.c172 MAX(SPA_MINBLOCKSHIFT, value)); in process_options()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_ctldir.c521 ip->i_blkbits = SPA_MINBLOCKSHIFT; in zfsctl_inode_alloc()
/freebsd/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c362 sls->sls_sm_obj, 0, UINT64_MAX, SPA_MINBLOCKSHIFT)); in iterate_through_spacemap_logs()
1914 sls->sls_sm_obj, 0, UINT64_MAX, SPA_MINBLOCKSHIFT)); in dump_log_spacemaps()
2454 dnp->dn_datablkszsec << SPA_MINBLOCKSHIFT); in blkid2offset()
5389 ashift = SPA_MINBLOCKSHIFT; in dump_label()
5429 ashift = SPA_MINBLOCKSHIFT; in dump_label()
5777 for (int i = SPA_MINBLOCKSHIFT; i < SPA_MAX_FOR_16M; i++) { in dump_size_histograms()
6010 unsigned idx = BP_GET_PSIZE(bp) >> SPA_MINBLOCKSHIFT; in zdb_count_block()
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_dataset.c5574 volsize = (nblocks * asize) / (tsize >> SPA_MINBLOCKSHIFT); in volsize_from_vdevs()
5580 (UINT64_MAX / (SPA_OLD_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT))) in volsize_from_vdevs()
5583 volsize *= (SPA_OLD_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT); in volsize_from_vdevs()

12