Lines Matching defs:rootzp
1751 znode_t *rootzp = NULL;
1827 rootzp = kmem_cache_alloc(znode_cache, KM_SLEEP);
1828 ASSERT(!POINTER_IS_VALID(rootzp->z_zfsvfs));
1829 rootzp->z_moved = 0;
1830 rootzp->z_unlinked = 0;
1831 rootzp->z_atime_dirty = 0;
1832 rootzp->z_is_sa = USE_SA(version, os);
1834 vp = ZTOV(rootzp);
1866 rootzp->z_zfsvfs = &zfsvfs;
1867 VERIFY(0 == zfs_acl_ids_create(rootzp, IS_ROOT_NODE, &vattr,
1869 zfs_mknode(rootzp, &vattr, tx, cr, IS_ROOT_NODE, &zp, &acl_ids);
1870 ASSERT3P(zp, ==, rootzp);
1871 ASSERT(!vn_in_dnlc(ZTOV(rootzp))); /* not valid to move */
1872 error = zap_add(os, moid, ZFS_ROOT_OBJ, 8, 1, &rootzp->z_id, tx);
1875 POINTER_INVALIDATE(&rootzp->z_zfsvfs);
1877 ZTOV(rootzp)->v_count = 0;
1878 sa_handle_destroy(rootzp->z_sa_hdl);
1879 kmem_cache_free(znode_cache, rootzp);