| /src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| vdev_disk.c | 34 #include <sys/zio.h> 391 zio_t *zio = bp->b_private; local 394 * The rest of the zio stack only deals with EIO, ECKSUM, and ENXIO. 398 zio->io_error = (geterror(bp) != 0 ? SET_ERROR(EIO) : 0); 400 if (zio->io_error == 0 && bp->b_resid != 0) 401 zio->io_error = SET_ERROR(EIO); 404 zio_delay_interrupt(zio); 408 vdev_disk_ioctl_free(zio_t *zio) 410 kmem_free(zio->io_vsd, sizeof (struct dk_callback)); 421 zio_t *zio = zio_arg local [all...] |
| dsl_pool.c | 41 #include <sys/zio.h> 532 zio_t *zio = zio_root(dp->dp_spa, NULL, NULL, ZIO_FLAG_MUSTSUCCEED); local 533 dmu_objset_sync(dp->dp_meta_objset, zio, tx); 534 VERIFY0(zio_wait(zio)); 560 zio_t *zio; local 575 zio = zio_root(dp->dp_spa, NULL, NULL, ZIO_FLAG_MUSTSUCCEED); 584 dsl_dataset_sync(ds, zio, tx); 586 VERIFY0(zio_wait(zio)); 623 zio = zio_root(dp->dp_spa, NULL, NULL, ZIO_FLAG_MUSTSUCCEED); 627 dsl_dataset_sync(ds, zio, tx) [all...] |
| vdev_geom.c | 37 #include <sys/zio.h> 173 * SPA ZIO configuration lock as a writer, but doing 921 zio_t *zio; local 923 zio = bp->bio_caller1; 924 vd = zio->io_vd; 925 zio->io_error = bp->bio_error; 926 if (zio->io_error == 0 && bp->bio_resid != 0) 927 zio->io_error = SET_ERROR(EIO); 929 switch(zio->io_error) { 954 spa_async_request(zio->io_spa [all...] |
| vdev_label.c | 146 #include <sys/zio.h> 187 vdev_label_read(zio_t *zio, vdev_t *vd, int l, void *buf, uint64_t offset, 190 ASSERT(spa_config_held(zio->io_spa, SCL_STATE_ALL, RW_WRITER) == 194 zio_nowait(zio_read_phys(zio, vd, 201 vdev_label_write(zio_t *zio, vdev_t *vd, int l, void *buf, uint64_t offset, 204 ASSERT(spa_config_held(zio->io_spa, SCL_ALL, RW_WRITER) == SCL_ALL || 205 (spa_config_held(zio->io_spa, SCL_CONFIG | SCL_STATE, RW_READER) == 207 dsl_pool_sync_context(spa_get_dsl(zio->io_spa)))); 210 zio_nowait(zio_write_phys(zio, vd, 453 zio_t *zio; local 647 zio_t *zio; local 878 zio_t *zio; local 1008 zio_t *zio; local 1090 zio_t *zio; local 1200 zio_t *zio; local 1254 zio_t *zio; local [all...] |
| dmu_tx.c | 162 dmu_tx_check_ioerr(zio_t *zio, dnode_t *dn, int level, uint64_t blkid) 172 err = dbuf_read(db, zio, DB_RF_CANFAIL | DB_RF_NOPREFETCH); 264 zio_t *zio = zio_root(dn->dn_objset->os_spa, local 271 err = dmu_tx_check_ioerr(zio, dn, 0, start); 280 err = dmu_tx_check_ioerr(zio, dn, 0, end); 289 err = dmu_tx_check_ioerr(zio, dn, 1, i); 295 err = zio_wait(zio); 658 zio_t *zio; local 715 zio = zio_root(tx->tx_pool->dp_spa, 728 err = dmu_tx_check_ioerr(zio, dn, 1, i) [all...] |
| trim_map.c | 33 * Calculate the zio end, upgrading based on ashift which would be 335 trim_map_write_start(zio_t *zio) 337 vdev_t *vd = zio->io_vd; 346 start = zio->io_offset; 347 end = TRIM_ZIO_END(zio->io_vd, start, zio->io_size); 358 list_insert_tail(&tm->tm_pending_writes, zio); 373 avl_add(&tm->tm_inflight_writes, zio); 381 trim_map_write_done(zio_t *zio) 383 vdev_t *vd = zio->io_vd 491 zio_t *zio; local 556 zio_t *zio; local [all...] |
| vdev_queue.c | 34 #include <sys/zio.h> 367 sizeof (zio_t), offsetof(struct zio, io_queue_node)); 370 offsetof(struct zio, io_offset_node)); 373 offsetof(struct zio, io_offset_node)); 389 sizeof (zio_t), offsetof(struct zio, io_queue_node)); 410 vdev_queue_io_add(vdev_queue_t *vq, zio_t *zio) 412 spa_t *spa = zio->io_spa; 416 ASSERT3U(zio->io_priority, <, ZIO_PRIORITY_NUM_QUEUEABLE); 417 avl_add(vdev_queue_class_tree(vq, zio->io_priority), zio); 797 zio_t *zio, *aio; local [all...] |
| ddt.c | 30 #include <sys/zio.h> 539 zio_t *zio = dde->dde_lead_zio[p]; local 541 if (zio != NULL) 542 refcnt += zio->io_parent_count; /* pending refs */ 943 ddt_repair_entry_done(zio_t *zio) 945 ddt_entry_t *rdde = zio->io_private; 957 zio_t *zio; local 960 zio = zio_null(rio, rio->io_spa, NULL, 969 zio_nowait(zio_rewrite(zio, zio->io_spa, 0, &blk [all...] |
| dmu.c | 452 zio_t *zio; local 493 zio = zio_root(dn->dn_objset->os_spa, NULL, NULL, ZIO_FLAG_CANFAIL); 500 zio_nowait(zio); 506 (void) dbuf_read(db, zio, dbuf_flags); 523 err = zio_wait(zio); 1641 dmu_sync_ready(zio_t *zio, arc_buf_t *buf, void *varg) 1645 blkptr_t *bp = zio->io_bp; 1647 if (zio->io_error == 0) { 1662 dmu_sync_late_arrival_ready(zio_t *zio) 1664 dmu_sync_ready(zio, NULL, zio->io_private) [all...] |
| zil.c | 841 zio_t *zio = NULL; local 857 if (zio == NULL) 858 zio = zio_root(spa, NULL, NULL, ZIO_FLAG_CANFAIL); 859 zio_flush(zio, vd); 868 if (zio) 869 (void) zio_wait(zio); 878 zil_lwb_write_done(zio_t *zio) 880 lwb_t *lwb = zio->io_private; 884 ASSERT(BP_GET_COMPRESS(zio->io_bp) == ZIO_COMPRESS_OFF); 885 ASSERT(BP_GET_TYPE(zio->io_bp) == DMU_OT_INTENT_LOG) [all...] |
| dbuf.c | 41 #include <sys/zio.h> 902 dbuf_read_done(zio_t *zio, arc_buf_t *buf, void *vdb) 922 } else if (zio == NULL || zio->io_error == 0) { 936 dbuf_read_impl(dmu_buf_impl_t *db, zio_t *zio, uint32_t flags) 1021 (void) arc_read(zio, db->db_objset->os_spa, db->db_blkptr, 1028 dbuf_read(dmu_buf_impl_t *db, zio_t *zio, uint32_t flags) 1031 boolean_t havepzio = (zio != NULL); 1064 if (zio == NULL) 1065 zio = zio_root(spa, NULL, NULL, ZIO_FLAG_CANFAIL) 2985 zio_t *zio; local 3485 zio_t *zio; local [all...] |
| dmu_objset.c | 1051 dmu_objset_write_ready(zio_t *zio, arc_buf_t *abuf, void *arg) 1053 blkptr_t *bp = zio->io_bp; 1079 dmu_objset_write_done(zio_t *zio, arc_buf_t *abuf, void *arg) 1081 blkptr_t *bp = zio->io_bp; 1082 blkptr_t *bp_orig = &zio->io_bp_orig; 1085 if (zio->io_flags & ZIO_FLAG_IO_REWRITE) { 1104 zio_t *zio; local 1136 zio = arc_write(pio, os->os_spa, tx->tx_txg, 1144 DMU_META_DNODE(os)->dn_zio = zio; 1151 DMU_USERUSED_DNODE(os)->dn_zio = zio; [all...] |
| zio.c | 47 SYSCTL_NODE(_vfs_zfs, OID_AUTO, zio, CTLFLAG_RW, 0, "ZFS ZIO"); 58 "Use uma(9) for ZIO allocations"); 133 * An allocating zio is one that either currently has the DVA allocate 136 #define IO_IS_ALLOCATING(zio) ((zio)->io_orig_pipeline & ZIO_STAGE_DVA_ALLOCATE) 360 zio_push_transform(zio_t *zio, void *data, uint64_t size, uint64_t bufsize, 365 zt->zt_orig_data = zio->io_data; 366 zt->zt_orig_size = zio->io_size; 370 zt->zt_next = zio->io_transform_stack 626 zio_t *zio; local 717 zio_t *zio; local 819 zio_t *zio; local 840 zio_t *zio; local 879 zio_t *zio; local 940 zio_t *zio; local 977 zio_t *zio; local 1013 zio_t *zio; local 1038 zio_t *zio; local 1059 zio_t *zio; local 1096 zio_t *zio; local 1165 zio_t *zio; local 1953 zio_t *zio; local 2101 zio_t *zio; local 2205 zio_t *zio; local 2773 zio_t *zio; local 2847 zio_t *zio; local 3497 zio->io_prop.zp_copies, zio); local [all...] |
| dsl_dataset.c | 42 #include <sys/zio.h> 207 * We are here as part of zio's write done callback, 208 * which means we're a zio interrupt thread. We can't 935 zio_t *zio; local 939 zio = zio_root(dp->dp_spa, NULL, NULL, ZIO_FLAG_MUSTSUCCEED); 940 dsl_dataset_sync(ds, zio, tx); 941 VERIFY0(zio_wait(zio)); 1725 dsl_dataset_sync(dsl_dataset_t *ds, zio_t *zio, dmu_tx_t *tx) 1753 dmu_objset_sync(ds->ds_objset, zio, tx);
|
| spa.c | 44 #include <sys/zio.h> 1915 spa_claim_notify(zio_t *zio) 1917 spa_t *spa = zio->io_spa; 1919 if (zio->io_error) 1923 if (spa->spa_claim_max_txg < zio->io_bp->blk_birth) 1924 spa->spa_claim_max_txg = zio->io_bp->blk_birth; 1934 spa_load_verify_done(zio_t *zio) 1936 blkptr_t *bp = zio->io_bp; 1937 spa_load_error_t *sle = zio->io_private; 1939 int error = zio->io_error 6355 zio_t *zio = arg; local 6369 zio_t *zio = zio_root(spa, NULL, NULL, 0); local 6381 zio_t *zio = zio_root(spa, NULL, NULL, 0); local [all...] |
| arc.c | 247 #include <sys/zio.h> 1045 * compression, and is set in the arc's zio completion handlers. 1764 arc_cksum_is_equal(arc_buf_hdr_t *hdr, zio_t *zio) 1766 enum zio_compress compress = BP_GET_COMPRESS(zio->io_bp); 1769 ASSERT(!BP_IS_EMBEDDED(zio->io_bp)); 1770 VERIFY3U(BP_GET_PSIZE(zio->io_bp), ==, HDR_GET_PSIZE(hdr)); 1790 csize = zio_compress_data(compress, zio->io_data, cbuf, lsize); 1808 zio_push_transform(zio, cbuf, csize, HDR_GET_PSIZE(hdr), NULL); 1815 * individual gang member. The zio pipeline, however, must be able to 1824 valid_cksum = (zio_checksum_error_impl(zio->io_spa, zio->io_bp 5697 zio_t *zio; local [all...] |
| /src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/ |
| zio.h | 214 #define ZIO_DDT_CHILD_FLAGS(zio) \ 215 (((zio)->io_flags & ZIO_FLAG_DDT_INHERIT) | \ 218 #define ZIO_GANG_CHILD_FLAGS(zio) \ 219 (((zio)->io_flags & ZIO_FLAG_GANG_INHERIT) | \ 222 #define ZIO_VDEV_CHILD_FLAGS(zio) \ 223 (((zio)->io_flags & ZIO_FLAG_VDEV_INHERIT) | \ 248 typedef void zio_done_func_t(zio_t *zio); 341 typedef void zio_vsd_cksum_report_f(zio_t *zio, zio_cksum_report_t *zcr, 356 typedef zio_t *zio_gang_issue_func_t(zio_t *zio, blkptr_t *bp, 359 typedef void zio_transform_func_t(zio_t *zio, void *data, uint64_t size) 426 struct zio { struct [all...] |
| /src/external/cddl/osnet/dist/cmd/zdb/ |
| zdb.c | 2407 zdb_blkptr_done(zio_t *zio) 2409 spa_t *spa = zio->io_spa; 2410 blkptr_t *bp = zio->io_bp; 2411 int ioerr = zio->io_error; 2412 zdb_cb_t *zcb = zio->io_private; 2413 zbookmark_phys_t *zb = &zio->io_bookmark; 2415 zio_data_buf_free(zio->io_data, zio->io_size); 2421 if (ioerr && !(zio->io_flags & ZIO_FLAG_SPECULATIVE)) { 2755 * I/Os to complete. We leverage "The Godfather" zio to wait o 3304 zio_t *zio; local [all...] |