/titanic_41/usr/src/uts/common/fs/zfs/ |
H A D | zfs_byteswap.c | 161 znode_phys_t *zp = buf; in zfs_znode_byteswap() local 165 zp->zp_crtime[0] = BSWAP_64(zp->zp_crtime[0]); in zfs_znode_byteswap() 166 zp->zp_crtime[1] = BSWAP_64(zp->zp_crtime[1]); in zfs_znode_byteswap() 167 zp->zp_atime[0] = BSWAP_64(zp->zp_atime[0]); in zfs_znode_byteswap() 168 zp->zp_atime[1] = BSWAP_64(zp->zp_atime[1]); in zfs_znode_byteswap() 169 zp->zp_mtime[0] = BSWAP_64(zp->zp_mtime[0]); in zfs_znode_byteswap() 170 zp->zp_mtime[1] = BSWAP_64(zp->zp_mtime[1]); in zfs_znode_byteswap() 171 zp->zp_ctime[0] = BSWAP_64(zp->zp_ctime[0]); in zfs_znode_byteswap() 172 zp->zp_ctime[1] = BSWAP_64(zp->zp_ctime[1]); in zfs_znode_byteswap() 173 zp->zp_gen = BSWAP_64(zp->zp_gen); in zfs_znode_byteswap() [all …]
|
H A D | zfs_znode.c | 118 znode_t *zp = buf; in zfs_znode_cache_constructor() local 120 ASSERT(!POINTER_IS_VALID(zp->z_zfsvfs)); in zfs_znode_cache_constructor() 122 zp->z_vnode = vn_alloc(kmflags); in zfs_znode_cache_constructor() 123 if (zp->z_vnode == NULL) { in zfs_znode_cache_constructor() 126 ZTOV(zp)->v_data = zp; in zfs_znode_cache_constructor() 128 list_link_init(&zp->z_link_node); in zfs_znode_cache_constructor() 130 mutex_init(&zp->z_lock, NULL, MUTEX_DEFAULT, NULL); in zfs_znode_cache_constructor() 131 rw_init(&zp->z_parent_lock, NULL, RW_DEFAULT, NULL); in zfs_znode_cache_constructor() 132 rw_init(&zp->z_name_lock, NULL, RW_DEFAULT, NULL); in zfs_znode_cache_constructor() 133 mutex_init(&zp->z_acl_lock, NULL, MUTEX_DEFAULT, NULL); in zfs_znode_cache_constructor() [all …]
|
H A D | zfs_sa.c | 71 zfs_sa_readlink(znode_t *zp, uio_t *uio) in zfs_sa_readlink() argument 73 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); in zfs_sa_readlink() 77 bufsz = zp->z_size; in zfs_sa_readlink() 84 if ((error = dmu_buf_hold(zp->z_zfsvfs->z_os, zp->z_id, in zfs_sa_readlink() 95 zfs_sa_symlink(znode_t *zp, char *link, int len, dmu_tx_t *tx) in zfs_sa_symlink() argument 97 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); in zfs_sa_symlink() 109 zfs_grow_blocksize(zp, len, tx); in zfs_sa_symlink() 110 VERIFY(0 == dmu_buf_hold(zp->z_zfsvfs->z_os, in zfs_sa_symlink() 111 zp->z_id, 0, FTAG, &dbp, DMU_READ_NO_PREFETCH)); in zfs_sa_symlink() 122 zfs_sa_get_scanstamp(znode_t *zp, xvattr_t *xvap) in zfs_sa_get_scanstamp() argument [all …]
|
H A D | zfs_vnops.c | 192 znode_t *zp = VTOZ(*vpp); in zfs_open() local 193 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_open() 196 ZFS_VERIFY_ZP(zp); in zfs_open() 198 if ((flag & FWRITE) && (zp->z_pflags & ZFS_APPENDONLY) && in zfs_open() 204 if (!zfs_has_ctldir(zp) && zp->z_zfsvfs->z_vscan && in zfs_open() 205 ZTOV(zp)->v_type == VREG && in zfs_open() 206 !(zp->z_pflags & ZFS_AV_QUARANTINED) && zp->z_size > 0) { in zfs_open() 215 atomic_inc_32(&zp->z_sync_cnt); in zfs_open() 226 znode_t *zp = VTOZ(vp); in zfs_close() local 227 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_close() [all …]
|
H A D | zfs_dir.c | 384 znode_t *zp; in zfs_dirlook() local 408 error = zfs_zget(zfsvfs, parent, &zp); in zfs_dirlook() 410 *vpp = ZTOV(zp); in zfs_dirlook() 421 error = zfs_dirent_lock(&dl, dzp, name, &zp, zf, deflg, rpnp); in zfs_dirlook() 423 *vpp = ZTOV(zp); in zfs_dirlook() 451 zfs_unlinked_add(znode_t *zp, dmu_tx_t *tx) in zfs_unlinked_add() argument 453 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_unlinked_add() 455 ASSERT(zp->z_unlinked); in zfs_unlinked_add() 456 ASSERT(zp->z_links == 0); in zfs_unlinked_add() 459 zap_add_int(zfsvfs->z_os, zfsvfs->z_unlinkedobj, zp->z_id, tx)); in zfs_unlinked_add() [all …]
|
H A D | zfs_acl.c | 333 zfs_external_acl(znode_t *zp) in zfs_external_acl() argument 338 if (zp->z_is_sa) in zfs_external_acl() 350 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zp->z_zfsvfs), in zfs_external_acl() 358 VERIFY(zp->z_is_sa && error == ENOENT); in zfs_external_acl() 370 zfs_acl_znode_info(znode_t *zp, int *aclsize, int *aclcount, in zfs_acl_znode_info() argument 373 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_acl_znode_info() 378 ASSERT(MUTEX_HELD(&zp->z_acl_lock)); in zfs_acl_znode_info() 379 if (zp->z_is_sa) { in zfs_acl_znode_info() 380 if ((error = sa_size(zp->z_sa_hdl, SA_ZPL_DACL_ACES(zfsvfs), in zfs_acl_znode_info() 384 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DACL_COUNT(zfsvfs), in zfs_acl_znode_info() [all …]
|
H A D | zfs_log.c | 235 znode_t *dzp, znode_t *zp, char *name, vsecattr_t *vsecp, in zfs_log_create() argument 281 lr->lr_foid = zp->z_id; in zfs_log_create() 282 lr->lr_mode = zp->z_mode; in zfs_log_create() 283 if (!IS_EPHEMERAL(zp->z_uid)) { in zfs_log_create() 284 lr->lr_uid = (uint64_t)zp->z_uid; in zfs_log_create() 288 if (!IS_EPHEMERAL(zp->z_gid)) { in zfs_log_create() 289 lr->lr_gid = (uint64_t)zp->z_gid; in zfs_log_create() 293 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_GEN(zp->z_zfsvfs), &lr->lr_gen, in zfs_log_create() 295 (void) sa_lookup(zp->z_sa_hdl, SA_ZPL_CRTIME(zp->z_zfsvfs), in zfs_log_create() 298 if (sa_lookup(zp->z_sa_hdl, SA_ZPL_RDEV(zp->z_zfsvfs), &lr->lr_rdev, in zfs_log_create() [all …]
|
H A D | zfs_rlock.c | 104 zfs_range_lock_writer(znode_t *zp, rl_t *new) in zfs_range_lock_writer() argument 106 avl_tree_t *tree = &zp->z_range_avl; in zfs_range_lock_writer() 125 if (zp->z_vnode) { /* caller is ZPL */ in zfs_range_lock_writer() 131 new->r_off = zp->z_size; in zfs_range_lock_writer() 138 end_size = MAX(zp->z_size, new->r_off + len); in zfs_range_lock_writer() 139 if (end_size > zp->z_blksz && (!ISP2(zp->z_blksz) || in zfs_range_lock_writer() 140 zp->z_blksz < zp->z_zfsvfs->z_max_blksz)) { in zfs_range_lock_writer() 178 cv_wait(&rl->r_wr_cv, &zp->z_range_lock); in zfs_range_lock_writer() 356 zfs_range_lock_reader(znode_t *zp, rl_t *new) in zfs_range_lock_reader() argument 358 avl_tree_t *tree = &zp->z_range_avl; in zfs_range_lock_reader() [all …]
|
H A D | zfs_events.c | 97 RZ_COUNTER_CB(znode_close_after_update, znode_t *zp) 98 RZ_COUNTER_CB(znode_create, znode_t *dzp, znode_t *zp, 100 RZ_COUNTER_CB(znode_remove, znode_t *dzp, znode_t *zp, 102 RZ_COUNTER_CB(znode_link, znode_t *dzp, znode_t *zp, dmu_tx_t *tx, char *name) 103 RZ_COUNTER_CB(znode_symlink, znode_t *dzp, znode_t *zp, 108 RZ_COUNTER_CB(znode_write, znode_t *zp, dmu_tx_t *tx, 110 RZ_COUNTER_CB(znode_truncate, znode_t *zp, dmu_tx_t *tx, 112 RZ_COUNTER_CB(znode_setattr, znode_t *zp, dmu_tx_t *tx) 113 RZ_COUNTER_CB(znode_acl, znode_t *zp, dmu_tx_t *tx)
|
H A D | zfs_replay.c | 567 znode_t *dzp, *zp; in zfs_replay_link() local 577 if ((error = zfs_zget(zfsvfs, lr->lr_link_obj, &zp)) != 0) { in zfs_replay_link() 585 error = VOP_LINK(ZTOV(dzp), ZTOV(zp), name, kcred, NULL, vflg); in zfs_replay_link() 587 VN_RELE(ZTOV(zp)); in zfs_replay_link() 629 znode_t *zp; in zfs_replay_write() local 637 if ((error = zfs_zget(zfsvfs, lr->lr_foid, &zp)) != 0) { in zfs_replay_write() 672 if (zp->z_size < eod) in zfs_replay_write() 676 error = vn_rdwr(UIO_WRITE, ZTOV(zp), data, length, offset, in zfs_replay_write() 679 VN_RELE(ZTOV(zp)); in zfs_replay_write() 694 znode_t *zp; in zfs_replay_write2() local [all …]
|
H A D | zio.c | 709 void *data, uint64_t size, const zio_prop_t *zp, in zio_write() argument 716 ASSERT(zp->zp_checksum >= ZIO_CHECKSUM_OFF && in zio_write() 717 zp->zp_checksum < ZIO_CHECKSUM_FUNCTIONS && in zio_write() 718 zp->zp_compress >= ZIO_COMPRESS_OFF && in zio_write() 719 zp->zp_compress < ZIO_COMPRESS_FUNCTIONS && in zio_write() 720 DMU_OT_IS_VALID(zp->zp_type) && in zio_write() 721 zp->zp_level < 32 && in zio_write() 722 zp->zp_copies > 0 && in zio_write() 723 zp->zp_copies <= spa_max_replication(spa)); in zio_write() 732 zio->io_prop = *zp; in zio_write() [all …]
|
/titanic_41/usr/src/lib/libast/common/tm/ |
H A D | tmzone.c | 51 register Tm_zone_t* zp; in tmzone() local 68 zp = tm_info.local; in tmzone() 72 if (zp->type) in tmzone() 73 prev = zp->type; in tmzone() 76 if (tmword(name, end, zp->standard, NiL, 0)) in tmzone() 80 return zp; in tmzone() 82 if (zp->dst && zp->daylight && tmword(name, end, zp->daylight, NiL, 0)) in tmzone() 85 *dst = zp->dst; in tmzone() 86 return zp; in tmzone() 89 if (zp == tm_info.local) in tmzone() [all …]
|
H A D | tminit.c | 178 Tm_zone_t* zp; in tmopt() local 188 tm_info.local->type = (n && *v) ? ((zp = tmtype(v, NiL)) ? zp->type : strdup(v)) : 0; in tmopt() 207 register Tm_zone_t* zp; in tmlocal() local 343 for (zp = tm_data.zone; zp->standard; zp++) in tmlocal() 345 if (zp->type) in tmlocal() 346 t = zp->type; in tmlocal() 347 if (zp->west == n && zp->dst == m) in tmlocal() 350 local.standard = zp->standard; in tmlocal() 351 if (!(s = zp->daylight)) in tmlocal() 354 s = tmpoff(s, e - s, zp->standard, 0, 0); in tmlocal() [all …]
|
H A D | tmtype.c | 45 register Tm_zone_t* zp; in tmtype() local 49 zp = tm_info.local; in tmtype() 52 if ((t = zp->type) && tmword(s, e, t, NiL, 0)) return(zp); in tmtype() 53 if (zp == tm_info.local) zp = tm_data.zone; in tmtype() 54 else zp++; in tmtype() 55 } while (zp->standard); in tmtype()
|
H A D | tmxfmt.c | 117 Tm_zone_t* zp; in tmxfmt() local 380 if ((zp = tm->tm_zone) != tm_info.local) in tmxfmt() 381 for (; zp >= tm_data.zone; zp--) in tmxfmt() 382 if (p = zp->type) in tmxfmt() 384 else if (p = zp->type) in tmxfmt() 503 if ((zp = tmzone(arg, &f, 0, 0)) && !*f && tm->tm_zone != zp) in tmxfmt() 504 tm = tmxtm(tm, tmxtime(tm, tm->tm_zone->west + (tm->tm_isdst ? tm->tm_zone->dst : 0)), zp); in tmxfmt() 513 if ((zp = tmzone(arg, &f, 0, 0)) && !*f && tm->tm_zone != zp) in tmxfmt() 514 tm = tmxtm(tm, tmxtime(tm, tm->tm_zone->west + (tm->tm_isdst ? tm->tm_zone->dst : 0)), zp); in tmxfmt()
|
/titanic_41/usr/src/lib/libast/common/comp/ |
H A D | waitpid.c | 99 register struct zombie* zp; 114 zp = zombies; 115 while (zp) 117 if (zp->pid >= 0 && (zp->pid == pid || pid <= 0)) 119 if (pp) pp->next = zp->next; 120 else zombies = zp->next; 121 if (status) *status = zp->status; 122 pid = zp->pid; 123 free(zp); 188 if (!(zp = newof(0, struct zombie, 1, 0))) return(-1); [all …]
|
/titanic_41/usr/src/uts/common/fs/zev/ |
H A D | zev_callbacks.c | 130 znode_t *zp; in zev_zfs_umount_cb() local 170 zp = VTOZ(vfs->vfs_vnodecovered); in zev_zfs_umount_cb() 171 ZEV_FILL_INODE_INFO(covered, zp); in zev_zfs_umount_cb() 244 zev_znode_close_after_update_cb(znode_t *zp) in zev_znode_close_after_update_cb() argument 251 if (zev_skip_pool(zp->z_zfsvfs->z_os)) in zev_znode_close_after_update_cb() 253 if (zev_skip_fs(zp->z_zfsvfs)) in zev_znode_close_after_update_cb() 264 dsl_dataset_phys(zp->z_zfsvfs->z_os->os_dsl_dataset)->ds_guid; in zev_znode_close_after_update_cb() 265 ZEV_FILL_INODE_INFO(file, zp); in zev_znode_close_after_update_cb() 271 znode_t *zp, in zev_znode_create_cb() argument 282 if (zev_skip_pool(zp->z_zfsvfs->z_os)) in zev_znode_create_cb() [all …]
|
H A D | zev_checksums.c | 137 zev_chksum_cache_file_get_and_hold(znode_t *zp) in zev_chksum_cache_file_get_and_hold() argument 144 dsl_dataset_phys(zp->z_zfsvfs->z_os->os_dsl_dataset)->ds_guid; in zev_chksum_cache_file_get_and_hold() 145 find_file.ino = zp->z_id; in zev_chksum_cache_file_get_and_hold() 146 find_file.gen = zp->z_gen; in zev_chksum_cache_file_get_and_hold() 153 dsl_dataset_phys(zp->z_zfsvfs->z_os->os_dsl_dataset)->ds_guid; in zev_chksum_cache_file_get_and_hold() 154 file->ino = zp->z_id; in zev_chksum_cache_file_get_and_hold() 155 file->gen = zp->z_gen; in zev_chksum_cache_file_get_and_hold() 219 znode_t *zp, in zev_chksum_cache_invalidate() argument 268 if (cs->offset_l1 < zp->z_size) in zev_chksum_cache_invalidate() 340 znode_t *zp = VTOZ(vp); in mappedread() local [all …]
|
/titanic_41/usr/src/lib/libbc/libc/gen/4.2/ |
H A D | timezone.c | 65 register struct zone *zp; in timezone() local 85 for (zp=zonetab; zp->offset!=-1; zp++) in timezone() 86 if (zp->offset==zone) { in timezone() 87 if (dst && zp->dlzone) in timezone() 88 return(zp->dlzone); in timezone() 89 if (!dst && zp->stdzone) in timezone() 90 return(zp->stdzone); in timezone()
|
/titanic_41/usr/src/uts/common/fs/zfs/sys/ |
H A D | zfs_events.h | 26 typedef void (*rz_zev_znode_close_after_update_cb_t)(znode_t *zp); 27 typedef void (*rz_zev_znode_create_cb_t)(znode_t *dzp, znode_t *zp, 29 typedef void (*rz_zev_znode_remove_cb_t)(znode_t *dzp, znode_t *zp, 31 typedef void (*rz_zev_znode_link_cb_t)(znode_t *dzp, znode_t *zp, 33 typedef void (*rz_zev_znode_symlink_cb_t)(znode_t *dzp, znode_t *zp, 38 typedef void (*rz_zev_znode_write_cb_t)(znode_t *zp, 41 typedef void (*rz_zev_znode_truncate_cb_t)(znode_t *zp, dmu_tx_t *tx, 43 typedef void (*rz_zev_znode_setattr_cb_t)(znode_t *zp, dmu_tx_t *tx); 44 typedef void (*rz_zev_znode_acl_cb_t)(znode_t *zp, dmu_tx_t *tx);
|
H A D | zfs_znode.h | 67 #define ZFS_ATTR_SET(zp, attr, value, pflags, tx) \ argument 73 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zp->z_zfsvfs), \ 240 #define ZFS_VERIFY_ZP(zp) \ argument 241 if ((zp)->z_sa_hdl == NULL) { \ 242 ZFS_EXIT((zp)->z_zfsvfs); \ 280 #define ZFS_ACCESSTIME_STAMP(zfsvfs, zp) \ argument 282 zfs_tstamp_update_setup(zp, ACCESSED, NULL, NULL, B_FALSE); 308 znode_t *dzp, znode_t *zp, char *name, vsecattr_t *, zfs_fuid_info_t *, 316 znode_t *dzp, znode_t *zp, char *name); 318 znode_t *dzp, znode_t *zp, char *name, char *link); [all …]
|
/titanic_41/usr/src/cmd/zic/ |
H A D | zic.c | 125 static void outzone(const struct zone *zp, int ntzones); 743 register struct zone *zp; in associate() local 778 zp = &zones[i]; in associate() 779 zp->z_rules = NULL; in associate() 780 zp->z_nrules = 0; in associate() 788 zp = &zones[i]; in associate() 789 if (strcmp(zp->z_rule, rp->r_name) != 0) in associate() 791 zp->z_rules = rp; in associate() 792 zp->z_nrules = out - base; in associate() 796 zp = &zones[i]; in associate() [all …]
|
/titanic_41/usr/src/cmd/whodo/ |
H A D | whodo.c | 512 struct uproc *zp; in showproc() local 532 for (zp = up->p_child->p_sibling; zp; zp = zp->p_sibling) { in showproc() 533 showproc(zp); in showproc() 584 struct uproc *zp; in calctotals() local 607 for (zp = up->p_child->p_sibling; zp; zp = zp->p_sibling) in calctotals() 608 calctotals(zp); in calctotals()
|
/titanic_41/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_vfsops.c | 542 struct zone *zp; in tmp_statvfs() local 552 zp = curproc->p_zone; in tmp_statvfs() 554 zp = tm->tm_vfsp->vfs_zone; in tmp_statvfs() 556 if (zp == NULL) in tmp_statvfs() 559 eff_zid = zp->zone_id; in tmp_statvfs() 590 zp->zone_max_swap_ctl != UINT64_MAX) { in tmp_statvfs() 598 mutex_enter(&zp->zone_mem_lock); in tmp_statvfs() 599 cap = zp->zone_max_swap_ctl; in tmp_statvfs() 600 used = zp->zone_max_swap; in tmp_statvfs() 601 mutex_exit(&zp->zone_mem_lock); in tmp_statvfs()
|
/titanic_41/usr/src/uts/common/vm/ |
H A D | vm_swap.c | 457 struct zone *zp = curproc->p_zone; in swapctl() local 494 if (!global && zp->zone_max_swap_ctl != UINT64_MAX) { in swapctl() 554 mutex_enter(&zp->zone_mem_lock); in swapctl() 555 cap = zp->zone_max_swap_ctl; in swapctl() 556 used = zp->zone_max_swap; in swapctl() 557 mutex_exit(&zp->zone_mem_lock); in swapctl() 605 if (zp->zone_max_swap_ctl != UINT64_MAX) { in swapctl() 608 mutex_enter(&zp->zone_mem_lock); in swapctl() 609 cap = zp->zone_max_swap_ctl; in swapctl() 610 used = zp->zone_max_swap; in swapctl() [all …]
|