Lines Matching refs:stack

74 static int zio_read_data(blkptr_t *bp, void *buf, char *stack);
287 zio_read_gang(blkptr_t *bp, dva_t *dva, void *buf, char *stack) in zio_read_gang() argument
294 zio_gb = (zio_gbh_phys_t *)stack; in zio_read_gang()
295 stack += SPA_GANGBLOCKSIZE; in zio_read_gang()
320 if (zio_read_data(&zio_gb->zg_blkptr[i], buf, stack)) in zio_read_gang()
336 zio_read_data(blkptr_t *bp, void *buf, char *stack) in zio_read_data() argument
351 if (zio_read_gang(bp, &bp->blk_dva[i], buf, stack) == 0) in zio_read_data()
374 zio_read(blkptr_t *bp, void *buf, char *stack) in zio_read() argument
390 if ((char *)buf < stack && ((char *)buf) + lsize > stack) { in zio_read()
397 buf = stack; in zio_read()
398 stack += psize; in zio_read()
401 if (zio_read_data(bp, buf, stack)) { in zio_read()
426 dmu_read(dnode_phys_t *dn, uint64_t blkid, void *buf, char *stack) in dmu_read() argument
433 bp = (blkptr_t *)stack; in dmu_read()
434 stack += sizeof (blkptr_t); in dmu_read()
436 tmpbuf = (blkptr_t *)stack; in dmu_read()
437 stack += 1<<dn->dn_indblkshift; in dmu_read()
448 } else if ((errnum = zio_read(bp, tmpbuf, stack))) { in dmu_read()
619 char *name, uint64_t *value, char *stack) in fzap_lookup() argument
643 l = (zap_leaf_phys_t *)stack; in fzap_lookup()
644 stack += 1<<blksft; in fzap_lookup()
647 if ((errnum = dmu_read(zap_dnode, blkid, l, stack))) in fzap_lookup()
662 zap_lookup(dnode_phys_t *zap_dnode, char *name, uint64_t *val, char *stack) in zap_lookup() argument
669 zapbuf = stack; in zap_lookup()
671 stack += size; in zap_lookup()
673 if ((errnum = dmu_read(zap_dnode, 0, zapbuf, stack))) in zap_lookup()
683 val, stack)); in zap_lookup()
704 char *stack) in dnode_get() argument
729 dnbuf = (dnode_phys_t *)stack; in dnode_get()
730 stack += blksz; in dnode_get()
733 if ((errnum = dmu_read(mdn, blkid, (char *)dnbuf, stack))) in dnode_get()
779 char *stack) in dnode_get_path() argument
785 dn, stack))) in dnode_get_path()
788 if ((errnum = zap_lookup(dn, ZPL_VERSION_STR, &version, stack))) in dnode_get_path()
793 if ((errnum = zap_lookup(dn, ZFS_ROOT_OBJ, &objnum, stack))) in dnode_get_path()
797 dn, stack))) in dnode_get_path()
813 if ((errnum = zap_lookup(dn, cname, &objnum, stack))) in dnode_get_path()
817 if ((errnum = dnode_get(mdn, objnum, 0, dn, stack))) in dnode_get_path()
839 get_default_bootfsobj(dnode_phys_t *mosmdn, uint64_t *obj, char *stack) in get_default_bootfsobj() argument
842 dnode_phys_t *dn = (dnode_phys_t *)stack; in get_default_bootfsobj()
843 stack += DNODE_SIZE; in get_default_bootfsobj()
846 DMU_OT_OBJECT_DIRECTORY, dn, stack))) in get_default_bootfsobj()
853 if (zap_lookup(dn, DMU_POOL_PROPS, &objnum, stack)) in get_default_bootfsobj()
856 if ((errnum = dnode_get(mosmdn, objnum, DMU_OT_POOL_PROPS, dn, stack))) in get_default_bootfsobj()
859 if (zap_lookup(dn, ZPOOL_PROP_BOOTFS, &objnum, stack)) in get_default_bootfsobj()
884 dnode_phys_t *mdn, char *stack) in get_objset_mdn() argument
899 DMU_OT_OBJECT_DIRECTORY, mdn, stack))) in get_objset_mdn()
903 stack))) in get_objset_mdn()
906 if ((errnum = dnode_get(mosmdn, objnum, DMU_OT_DSL_DIR, mdn, stack))) in get_objset_mdn()
941 DMU_OT_DSL_DIR_CHILD_MAP, mdn, stack))) in get_objset_mdn()
944 if (zap_lookup(mdn, cname, &objnum, stack)) in get_objset_mdn()
948 mdn, stack))) in get_objset_mdn()
960 if ((errnum = dnode_get(mosmdn, headobj, DMU_OT_DSL_DATASET, mdn, stack))) in get_objset_mdn()
969 DMU_OT_DSL_DS_SNAP_MAP, mdn, stack))) in get_objset_mdn()
971 if (zap_lookup(mdn, snapname + 1, &headobj, stack)) in get_objset_mdn()
974 DMU_OT_DSL_DATASET, mdn, stack))) in get_objset_mdn()
981 osp = (objset_phys_t *)stack; in get_objset_mdn()
982 stack += sizeof (objset_phys_t); in get_objset_mdn()
983 if ((errnum = zio_read(bp, osp, stack))) in get_objset_mdn()
1210 check_pool_label(uint64_t sector, char *stack, char *outdevid, in check_pool_label() argument
1222 if (devread(sector, 0, VDEV_PHYS_SIZE, stack) == 0) in check_pool_label()
1225 vdev = (vdev_phys_t *)stack; in check_pool_label()
1226 stack += sizeof (vdev_phys_t); in check_pool_label()
1280 char *stack; in zfs_mount() local
1297 stack = stackbase; in zfs_mount()
1298 ub_array = (uberblock_phys_t *)stack; in zfs_mount()
1299 stack += VDEV_UBERBLOCK_RING; in zfs_mount()
1301 osp = (objset_phys_t *)stack; in zfs_mount()
1302 stack += sizeof (objset_phys_t); in zfs_mount()
1332 zio_read(&ubbest->ubp_uberblock.ub_rootbp, osp, stack) in zfs_mount()
1337 if (check_pool_label(sector, stack, tmp_devid, in zfs_mount()
1382 char *stack; in zfs_open() local
1387 stack = stackbase; in zfs_open()
1389 mdn = (dnode_phys_t *)stack; in zfs_open()
1390 stack += sizeof (dnode_phys_t); in zfs_open()
1393 dnode_buf = (dnode_phys_t *)stack; in zfs_open()
1394 stack += 1<<DNODE_BLOCK_SHIFT; in zfs_open()
1401 if ((errnum = get_objset_mdn(MOS, NULL, NULL, mdn, stack))) in zfs_open()
1409 &current_bootfs_obj, stack))) in zfs_open()
1413 &current_bootfs_obj, mdn, stack))) in zfs_open()
1417 &current_bootfs_obj, mdn, stack))) { in zfs_open()
1424 if (dnode_get_path(mdn, filename, DNODE, stack)) { in zfs_open()
1447 buf = (void *)stack; in zfs_open()
1448 stack += BP_GET_LSIZE(bp); in zfs_open()
1452 if (zio_read(bp, buf, stack) != 0) { in zfs_open()
1483 char *stack; in zfs_read() local
1491 stack = stackbase; in zfs_read()
1517 if ((errnum = dmu_read(DNODE, blkid, file_buf, stack))) in zfs_read()