/freebsd-current/sys/contrib/openzfs/include/os/freebsd/zfs/sys/ |
H A D | zfs_vfsops_os.h | 65 typedef struct zfsvfs zfsvfs_t; 68 struct zfsvfs { struct 124 #define ZFS_TEARDOWN_INIT(zfsvfs) \ 125 rms_init(&(zfsvfs)->z_teardown_lock, "zfs teardown") 127 #define ZFS_TEARDOWN_DESTROY(zfsvfs) \ 128 rms_destroy(&(zfsvfs)->z_teardown_lock) 130 #define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \ 131 rms_rlock(&(zfsvfs)->z_teardown_lock); 133 #define ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag) \ 134 rms_runlock(&(zfsvfs) [all...] |
H A D | zfs_znode_impl.h | 55 struct zfsvfs *z_zfsvfs; \ 128 zfs_enter(zfsvfs_t *zfsvfs, const char *tag) argument 130 ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag); 131 if (__predict_false((zfsvfs)->z_unmounted)) { 132 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); 140 zfs_exit(zfsvfs_t *zfsvfs, const char *tag) argument 142 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); 149 #define ZFS_OBJ_MUTEX(zfsvfs, obj_num) \ 150 (&(zfsvfs)->z_hold_mtx[ZFS_OBJ_HASH(obj_num)]) 151 #define ZFS_OBJ_HOLD_ENTER(zfsvfs, obj_nu [all...] |
/freebsd-current/sys/contrib/openzfs/include/sys/ |
H A D | zfs_quota.h | 28 struct zfsvfs; 34 extern int zfs_userspace_one(struct zfsvfs *, zfs_userquota_prop_t, 36 extern int zfs_userspace_many(struct zfsvfs *, zfs_userquota_prop_t, 38 extern int zfs_set_userquota(struct zfsvfs *, zfs_userquota_prop_t, 41 extern boolean_t zfs_id_overobjquota(struct zfsvfs *, uint64_t, uint64_t); 42 extern boolean_t zfs_id_overblockquota(struct zfsvfs *, uint64_t, uint64_t); 43 extern boolean_t zfs_id_overquota(struct zfsvfs *, uint64_t, uint64_t);
|
H A D | zfs_fuid.h | 115 extern const char *zfs_fuid_find_by_idx(zfsvfs_t *zfsvfs, uint32_t idx); 116 extern void zfs_fuid_txhold(zfsvfs_t *zfsvfs, dmu_tx_t *tx); 117 extern int zfs_id_to_fuidstr(zfsvfs_t *zfsvfs, const char *domain, uid_t rid,
|
/freebsd-current/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zfs_vfsops.c | 253 zfs_is_readonly(zfsvfs_t *zfsvfs) argument 255 return (!!(zfsvfs->z_sb->s_flags & SB_RDONLY)); 262 zfsvfs_t *zfsvfs = sb->s_fs_info; local 271 if (zfsvfs != NULL) { 278 if ((error = zfs_enter(zfsvfs, FTAG)) != 0) 280 dp = dmu_objset_pool(zfsvfs->z_os); 287 zfs_exit(zfsvfs, FTAG); 291 if (zfsvfs->z_log != NULL) 292 zil_commit(zfsvfs->z_log, 0); 294 zfs_exit(zfsvfs, FTA 310 zfsvfs_t *zfsvfs = arg; local 336 zfsvfs_t *zfsvfs = arg; local 353 zfsvfs_t *zfsvfs = arg; local 378 zfsvfs_t *zfsvfs = arg; local 389 zfsvfs_t *zfsvfs = arg; local 419 zfsvfs_t *zfsvfs = arg; local 440 zfsvfs_t *zfsvfs = arg; local 456 zfsvfs_t *zfsvfs = NULL; local 624 zfsvfs_init(zfsvfs_t *zfsvfs, objset_t *os) argument 775 zfsvfs_t *zfsvfs; local 798 zfsvfs_create_impl(zfsvfs_t **zfvp, zfsvfs_t *zfsvfs, objset_t *os) argument 843 zfsvfs_setup(zfsvfs_t *zfsvfs, boolean_t mounting) argument 944 zfsvfs_free(zfsvfs_t *zfsvfs) argument 968 zfs_set_fuid_feature(zfsvfs_t *zfsvfs) argument 975 zfs_unregister_callbacks(zfsvfs_t *zfsvfs) argument 980 dsl_prop_unregister_all(dmu_objset_ds(os), zfsvfs); local 1013 zfs_statfs_project(zfsvfs_t *zfsvfs, znode_t *zp, struct kstatfs *statp, uint32_t bshift) argument 1093 zfsvfs_t *zfsvfs = ITOZSB(ip); local 1164 zfs_root(zfsvfs_t *zfsvfs, struct inode **ipp) argument 1190 zfs_prune_aliases(zfsvfs_t *zfsvfs, unsigned long nr_to_scan) argument 1252 zfsvfs_t *zfsvfs = sb->s_fs_info; local 1318 zfsvfs_teardown(zfsvfs_t *zfsvfs, boolean_t unmounting) argument 1469 zfsvfs_t *zfsvfs = NULL; local 1607 zfsvfs_t *zfsvfs = sb->s_fs_info; local 1642 zfsvfs_t *zfsvfs = sb->s_fs_info; local 1677 zfsvfs_t *zfsvfs = sb->s_fs_info; local 1709 zfsvfs_t *zfsvfs = sb->s_fs_info; local 1828 zfs_suspend_fs(zfsvfs_t *zfsvfs) argument 1846 zfs_resume_fs(zfsvfs_t *zfsvfs, dsl_dataset_t *ds) argument 1944 zfs_end_fs(zfsvfs_t *zfsvfs, dsl_dataset_t *ds) argument 1980 zfs_exit_fs(zfsvfs_t *zfsvfs) argument 1995 zfs_set_version(zfsvfs_t *zfsvfs, uint64_t newvers) argument [all...] |
H A D | zfs_dir.c | 63 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, argument 70 if (zfsvfs->z_norm) { 83 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, 86 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); 99 if (zfsvfs->z_norm && !error && deflags) 146 zfsvfs_t *zfsvfs = ZTOZSB(dzp); local 168 * zfsvfs->z_case and zfsvfs->z_norm fields. These choices 192 if (zfsvfs->z_norm != 0) { 200 if ((zfsvfs 396 zfsvfs_t *zfsvfs = ZTOZSB(dzp); local 459 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 477 zfsvfs_t *zfsvfs = arg; local 542 zfs_unlinked_drain(zfsvfs_t *zfsvfs) argument 564 zfs_unlinked_drain_stop_wait(zfsvfs_t *zfsvfs) argument 595 zfsvfs_t *zfsvfs = ZTOZSB(dzp); local 648 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 802 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 939 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 1016 zfsvfs_t *zfsvfs = ZTOZSB(dzp); local 1093 zfsvfs_t *zfsvfs = ZTOZSB(dzp); local 1110 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 1186 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 1257 zfsvfs_t *zfsvfs = ZTOZSB(zdp); local [all...] |
H A D | zfs_vnops_os.c | 85 * This is done avoiding races using zfs_enter(zfsvfs). 86 * A zfs_exit(zfsvfs) is needed before all returns. Any znodes 124 * If dmu_tx_assign() returns ERESTART and zfsvfs->z_assign is TXG_NOWAIT, 145 * zfs_enter(zfsvfs); // exit if unmounted 163 * zfs_exit(zfsvfs); // finished in zfs 174 * zfs_exit(zfsvfs); // finished in zfs 182 zfsvfs_t *zfsvfs = ITOZSB(ip); local 185 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) 191 zfs_exit(zfsvfs, FTAG); 202 zil_async_to_sync(zfsvfs 214 zfsvfs_t *zfsvfs = ITOZSB(ip); local 440 zfsvfs_t *zfsvfs = ZTOZSB(zdp); local 563 zfsvfs_t *zfsvfs = ZTOZSB(dzp); local 812 zfsvfs_t *zfsvfs = ITOZSB(dip); local 949 zfsvfs_t *zfsvfs = ZTOZSB(dzp); local 1191 zfsvfs_t *zfsvfs = ZTOZSB(dzp); local 1380 zfsvfs_t *zfsvfs = ZTOZSB(dzp); local 1512 zfsvfs_t *zfsvfs = ITOZSB(ip); local 1666 zfsvfs_t *zfsvfs = ITOZSB(ip); local 1732 zfsvfs_t *zfsvfs = ZTOZSB(dzp); local 1858 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 2699 zfsvfs_t *zfsvfs = ZTOZSB(sdzp); local 3234 zfsvfs_t *zfsvfs = ZTOZSB(dzp); local 3399 zfsvfs_t *zfsvfs = ITOZSB(ip); local 3439 zfsvfs_t *zfsvfs = ZTOZSB(tdzp); local 3657 zfsvfs_t *zfsvfs = ITOZSB(ip); local 3880 zfsvfs_t *zfsvfs = ITOZSB(ip); local 3951 zfsvfs_t *zfsvfs = ITOZSB(ip); local 3999 zfsvfs_t *zfsvfs = ITOZSB(ip); local 4045 zfsvfs_t *zfsvfs = ITOZSB(ip); local 4079 zfsvfs_t *zfsvfs = ITOZSB(ip); local 4129 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 4180 zfsvfs_t *zfsvfs = ITOZSB(ip); local [all...] |
H A D | zfs_ctldir.c | 480 zfsctl_inode_alloc(zfsvfs_t *zfsvfs, uint64_t id, argument 488 ip = new_inode(zfsvfs->z_sb); 538 mutex_enter(&zfsvfs->z_znodes_lock); 539 list_insert_tail(&zfsvfs->z_all_znodes, zp); 541 mutex_exit(&zfsvfs->z_znodes_lock); 552 zfsctl_inode_lookup(zfsvfs_t *zfsvfs, uint64_t id, argument 561 ip = ilookup(zfsvfs->z_sb, (unsigned long)id); 566 pool = dmu_objset_pool(zfsvfs->z_os); 577 ip = zfsctl_inode_alloc(zfsvfs, id, fops, ops, creation); 594 zfsctl_create(zfsvfs_t *zfsvfs) argument 611 zfsctl_destroy(zfsvfs_t *zfsvfs) argument 701 zfsvfs_t *zfsvfs = ITOZSB(ip); local 740 zfsctl_snapshot_name(zfsvfs_t *zfsvfs, const char *snap_name, int len, char *full_name) argument 762 zfsctl_snapshot_path_objset(zfsvfs_t *zfsvfs, uint64_t objsetid, int path_len, char *full_path) argument 807 zfsvfs_t *zfsvfs = ITOZSB(dip); local 841 zfsvfs_t *zfsvfs = ITOZSB(dip); local 873 zfsvfs_t *zfsvfs = ITOZSB(sdip); local 952 zfsvfs_t *zfsvfs = ITOZSB(dip); local 1002 zfsvfs_t *zfsvfs = ITOZSB(dip); local 1100 zfsvfs_t *zfsvfs; local 1262 zfsvfs_t *zfsvfs = ITOZSB(dip); local [all...] |
H A D | zfs_znode.c | 258 zfs_znode_held(zfsvfs_t *zfsvfs, uint64_t obj) argument 261 int i = ZFS_OBJ_HASH(zfsvfs, obj); 266 mutex_enter(&zfsvfs->z_hold_locks[i]); 267 zh = avl_find(&zfsvfs->z_hold_trees[i], &search, NULL); 269 mutex_exit(&zfsvfs->z_hold_locks[i]); 275 zfs_znode_hold_enter(zfsvfs_t *zfsvfs, uint64_t obj) argument 278 int i = ZFS_OBJ_HASH(zfsvfs, obj); 284 mutex_enter(&zfsvfs->z_hold_locks[i]); 285 zh = avl_find(&zfsvfs->z_hold_trees[i], &search, NULL); 289 avl_add(&zfsvfs 308 zfs_znode_hold_exit(zfsvfs_t *zfsvfs, znode_hold_t *zh) argument 335 zfs_znode_sa_init(zfsvfs_t *zfsvfs, znode_t *zp, dmu_buf_t *db, dmu_object_type_t obj_type, sa_handle_t *sa_hdl) argument 388 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 410 zfs_inode_set_ops(zfsvfs_t *zfsvfs, struct inode *ip) argument 534 zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz, dmu_object_type_t obj_type, sa_handle_t *hdl) argument 665 zfsvfs_t *zfsvfs = ITOZSB(ip); local 700 zfsvfs_t *zfsvfs = ZTOZSB(dzp); local 1081 zfs_zget(zfsvfs_t *zfsvfs, uint64_t obj_num, znode_t **zpp) argument 1190 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 1337 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 1356 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 1520 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 1639 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 1718 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 1787 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 1855 zfsvfs_t *zfsvfs; local [all...] |
H A D | zpl_super.c | 187 __zpl_show_devname(struct seq_file *seq, zfsvfs_t *zfsvfs) argument 190 if ((error = zpl_enter(zfsvfs, FTAG)) != 0) 194 dmu_objset_name(zfsvfs->z_os, fsname); 211 zpl_exit(zfsvfs, FTAG); 223 __zpl_show_options(struct seq_file *seq, zfsvfs_t *zfsvfs) argument 226 zfsvfs->z_flags & ZSB_XATTR ? "xattr" : "noxattr"); 229 switch (zfsvfs->z_acl_type) { 239 switch (zfsvfs->z_case) { 278 zfsvfs_t *zfsvfs = s->s_fs_info; local 287 return (zfsvfs ! 322 zfsvfs_t *zfsvfs = s->s_fs_info; local [all...] |
H A D | zpl_ctldir.c | 57 zfsvfs_t *zfsvfs = ITOZSB(file_inode(filp)); local 60 if ((error = zpl_enter(zfsvfs, FTAG)) != 0) 82 zpl_exit(zfsvfs, FTAG); 263 zfsvfs_t *zfsvfs = ITOZSB(file_inode(filp)); local 270 if ((error = zpl_enter(zfsvfs, FTAG)) != 0) 280 dsl_pool_config_enter(dmu_objset_pool(zfsvfs->z_os), FTAG); 281 error = -dmu_snapshot_list_next(zfsvfs->z_os, MAXNAMELEN, 283 dsl_pool_config_exit(dmu_objset_pool(zfsvfs->z_os), FTAG); 295 zpl_exit(zfsvfs, FTAG); 430 zfsvfs_t *zfsvfs local 542 zfsvfs_t *zfsvfs = ITOZSB(file_inode(filp)); local 603 zfsvfs_t *zfsvfs = ITOZSB(ip); local [all...] |
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_quota.c | 116 fuidstr_to_sid(zfsvfs_t *zfsvfs, const char *fuidstr, argument 124 domain = zfs_fuid_find_by_idx(zfsvfs, FUID_INDEX(fuid)); 133 zfs_userquota_prop_to_obj(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type) argument 146 return (zfsvfs->z_userquota_obj); 148 return (zfsvfs->z_groupquota_obj); 150 return (zfsvfs->z_userobjquota_obj); 152 return (zfsvfs->z_groupobjquota_obj); 154 return (zfsvfs->z_projectquota_obj); 156 return (zfsvfs->z_projectobjquota_obj); 163 zfs_userspace_many(zfsvfs_t *zfsvfs, zfs_userquota_prop_ argument 231 zfs_userspace_one(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, const char *domain, uint64_t rid, uint64_t *valp) argument 282 zfs_set_userquota(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, const char *domain, uint64_t rid, uint64_t quota) argument 370 zfs_id_overobjquota(zfsvfs_t *zfsvfs, uint64_t usedobj, uint64_t id) argument 423 zfs_id_overblockquota(zfsvfs_t *zfsvfs, uint64_t usedobj, uint64_t id) argument 463 zfs_id_overquota(zfsvfs_t *zfsvfs, uint64_t usedobj, uint64_t id) argument [all...] |
H A D | zfs_fuid.c | 47 * the zfsvfs->z_fuid_dirty flag is set to true and the caller will then 192 zfs_fuid_init(zfsvfs_t *zfsvfs) argument 194 rw_enter(&zfsvfs->z_fuid_lock, RW_WRITER); 196 if (zfsvfs->z_fuid_loaded) { 197 rw_exit(&zfsvfs->z_fuid_lock); 201 zfs_fuid_avl_tree_create(&zfsvfs->z_fuid_idx, &zfsvfs->z_fuid_domain); 203 (void) zap_lookup(zfsvfs->z_os, MASTER_NODE_OBJ, 204 ZFS_FUID_TABLES, 8, 1, &zfsvfs->z_fuid_obj); 205 if (zfsvfs 219 zfs_fuid_sync(zfsvfs_t *zfsvfs, dmu_tx_t *tx) argument 294 zfs_fuid_find_by_domain(zfsvfs_t *zfsvfs, const char *domain, const char **retdomain, boolean_t addok) argument 359 zfs_fuid_find_by_idx(zfsvfs_t *zfsvfs, uint32_t idx) argument 392 zfs_fuid_map_id(zfsvfs_t *zfsvfs, uint64_t fuid, cred_t *cr, zfs_fuid_type_t type) argument 404 zfs_fuid_map_id(zfsvfs_t *zfsvfs, uint64_t fuid, cred_t *cr, zfs_fuid_type_t type) argument 415 zfs_fuid_map_id(zfsvfs_t *zfsvfs, uint64_t fuid, cred_t *cr, zfs_fuid_type_t type) argument 515 zfs_fuid_create_cred(zfsvfs_t *zfsvfs, zfs_fuid_type_t type, cred_t *cr, zfs_fuid_info_t **fuidp) argument 572 zfs_fuid_create(zfsvfs_t *zfsvfs, uint64_t id, cred_t *cr, zfs_fuid_type_t type, zfs_fuid_info_t **fuidpp) argument 665 zfs_fuid_destroy(zfsvfs_t *zfsvfs) argument 723 zfs_groupmember(zfsvfs_t *zfsvfs, uint64_t id, cred_t *cr) argument 772 zfs_fuid_txhold(zfsvfs_t *zfsvfs, dmu_tx_t *tx) argument 790 zfs_id_to_fuidstr(zfsvfs_t *zfsvfs, const char *domain, uid_t rid, char *buf, size_t len, boolean_t addok) argument [all...] |
H A D | zfs_sa.c | 131 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 137 if (sa_lookup(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), 165 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 171 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), 188 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zfsvfs), 196 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 205 error = sa_size(zp->z_sa_hdl, SA_ZPL_DXATTR(zfsvfs), &size); 216 error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DXATTR(zfsvfs), obj, size); 228 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 252 zilog = zfsvfs 309 zfsvfs_t *zfsvfs = ZTOZSB(zp); local [all...] |
H A D | zfs_vnops.c | 86 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 88 if (zfsvfs->z_os->os_sync != ZFS_SYNC_DISABLED) { 89 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) 92 zil_commit(zfsvfs->z_log, zp->z_id); 94 zfs_exit(zfsvfs, FTAG); 164 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 167 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) 172 zfs_exit(zfsvfs, FTAG); 180 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 183 if ((error = zfs_enter_verify_zp(zfsvfs, z 229 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 347 zfs_clear_setid_bits_if_necessary(zfsvfs_t *zfsvfs, znode_t *zp, cred_t *cr, uint64_t *clear_setid_bits_txgp, dmu_tx_t *tx) argument 798 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 813 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 843 zfsvfs_t *zfsvfs = arg; local 1466 zfsvfs_t *zfsvfs; local [all...] |
H A D | zfs_replay.c | 294 zfsvfs_t *zfsvfs = arg1; local 334 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0) 356 error = dnode_try_claim(zfsvfs->z_os, objid, dnodesize >> DNODE_SHIFT); 367 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, 383 if (zfsvfs->z_fuid_replay == NULL) { 386 zfsvfs->z_fuid_replay = 404 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, 419 if (zfsvfs->z_fuid_replay == NULL) { 422 zfsvfs->z_fuid_replay = 448 if (zfsvfs 458 zfsvfs_t *zfsvfs = arg1; local 613 zfsvfs_t *zfsvfs = arg1; local 650 zfsvfs_t *zfsvfs = arg1; local 681 do_zfs_replay_rename(zfsvfs_t *zfsvfs, lr_rename_t *lr, char *sname, char *tname, uint64_t rflags, vattr_t *wo_vap) argument 724 zfsvfs_t *zfsvfs = arg1; local 741 zfsvfs_t *zfsvfs = arg1; local 762 zfsvfs_t *zfsvfs = arg1; local 810 zfsvfs_t *zfsvfs = arg1; local 876 zfsvfs_t *zfsvfs = arg1; local 925 zfsvfs_t *zfsvfs = arg1; local 955 zfsvfs_t *zfsvfs = arg1; local 1017 zfsvfs_t *zfsvfs = arg1; local 1100 zfsvfs_t *zfsvfs = arg1; local 1149 zfsvfs_t *zfsvfs = arg1; local 1201 zfsvfs_t *zfsvfs = arg1; local [all...] |
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_vfsops.c | 246 zfs_getquota(zfsvfs_t *zfsvfs, uid_t id, int isgroup, struct dqblk64 *dqp) argument 255 quotaobj = isgroup ? zfsvfs->z_groupquota_obj : zfsvfs->z_userquota_obj; 257 if (quotaobj == 0 || zfsvfs->z_replay) { 262 if ((error = zap_lookup(zfsvfs->z_os, quotaobj, 273 error = zap_lookup(zfsvfs->z_os, usedobj, buf, sizeof (used), 1, &used); 299 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 310 if ((error = zfs_enter(zfsvfs, FTAG)) != 0) 361 * Create fuid using zfs_fuid_create(zfsvfs, id, 397 error = zfs_set_userquota(zfsvfs, quota_typ 416 zfs_is_readonly(zfsvfs_t *zfsvfs) argument 443 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 479 zfsvfs_t *zfsvfs = arg; local 497 zfsvfs_t *zfsvfs = arg; local 514 zfsvfs_t *zfsvfs = arg; local 526 zfsvfs_t *zfsvfs = arg; local 544 zfsvfs_t *zfsvfs = arg; local 560 zfsvfs_t *zfsvfs = arg; local 584 zfsvfs_t *zfsvfs = arg; local 597 zfsvfs_t *zfsvfs = arg; local 605 zfsvfs_t *zfsvfs = arg; local 613 zfsvfs_t *zfsvfs = arg; local 621 zfsvfs_t *zfsvfs = arg; local 631 zfsvfs_t *zfsvfs = NULL; local 796 zfsvfs_init(zfsvfs_t *zfsvfs, objset_t *os) argument 969 zfsvfs_t *zfsvfs; local 1000 zfsvfs_create_impl(zfsvfs_t **zfvp, zfsvfs_t *zfsvfs, objset_t *os) argument 1032 zfsvfs_setup(zfsvfs_t *zfsvfs, boolean_t mounting) argument 1149 zfsvfs_free(zfsvfs_t *zfsvfs) argument 1168 zfs_set_fuid_feature(zfsvfs_t *zfsvfs) argument 1179 zfsvfs_t *zfsvfs; local 1270 zfs_unregister_callbacks(zfsvfs_t *zfsvfs) argument 1275 dsl_prop_unregister_all(dmu_objset_ds(os), zfsvfs); local 1411 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1449 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1510 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1540 zfsvfs_teardown(zfsvfs_t *zfsvfs, boolean_t unmounting) argument 1667 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1744 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1786 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1808 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1944 zfs_suspend_fs(zfsvfs_t *zfsvfs) argument 1962 zfs_resume_fs(zfsvfs_t *zfsvfs, dsl_dataset_t *ds) argument 2025 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 2152 zfs_end_fs(zfsvfs_t *zfsvfs, dsl_dataset_t *ds) argument 2183 zfs_set_version(zfsvfs_t *zfsvfs, uint64_t newvers) argument [all...] |
H A D | zfs_dir.c | 69 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, argument 74 if (zfsvfs->z_norm) { 80 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, 83 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); 113 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 119 if (zfsvfs->z_replay == B_FALSE) 135 * zfsvfs->z_case and zfsvfs->z_norm fields. These choices 147 if (zfsvfs->z_norm != 0) { 155 if (zfsvfs 203 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 272 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 287 zfs_unlinked_drain(zfsvfs_t *zfsvfs) argument 374 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 426 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 578 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 714 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 809 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 885 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 953 zfsvfs_t *zfsvfs = zdp->z_zfsvfs; local [all...] |
H A D | zfs_ioctl_os.c | 60 zfs_vfs_held(zfsvfs_t *zfsvfs) argument 62 return (zfsvfs->z_vfs != NULL); 66 zfs_vfs_rele(zfsvfs_t *zfsvfs) argument 68 vfs_unbusy(zfsvfs->z_vfs); 142 zfsvfs_t *zfsvfs; local 144 if (getzfsvfs(dsname, &zfsvfs) == 0) { 145 struct mount *mp = zfsvfs->z_vfs; 147 zfs_vfs_rele(zfsvfs);
|
H A D | zfs_vnops_os.c | 141 * This is done avoiding races using zfs_enter(zfsvfs). 142 * A zfs_exit(zfsvfs) is needed before all returns. Any znodes 177 * If dmu_tx_assign() returns ERESTART and zfsvfs->z_assign is TXG_NOWAIT, 198 * zfs_enter(zfsvfs); // exit if unmounted 216 * zfs_exit(zfsvfs); // finished in zfs 227 * zfs_exit(zfsvfs); // finished in zfs 235 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 238 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) 243 zfs_exit(zfsvfs, FTAG); 254 zil_async_to_sync(zfsvfs 266 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 788 zfsvfs_t *zfsvfs = zdp->z_zfsvfs; local 1066 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1239 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1354 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1433 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1610 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 1717 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1978 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2193 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 2916 zfsvfs_t *zfsvfs; local 3093 zfsvfs_t *zfsvfs; local 3225 zfsvfs_t *zfsvfs; local 3513 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 3658 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 3696 zfsvfs_t *zfsvfs = tdzp->z_zfsvfs; local 3847 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 3898 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 3950 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4007 zfsvfs_t *zfsvfs; local 4057 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4173 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 4621 zfsvfs_t *zfsvfs; local 4642 zfsvfs_t *zfsvfs; local 4873 zfsvfs_t *zfsvfs = VTOZ(vp)->z_zfsvfs; local 5163 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 5190 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 5447 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 5471 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 5588 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 5612 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 5747 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 5800 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 5982 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 6005 zfsvfs_t *zfsvfs = ZTOZSB(zp); local 6144 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 6211 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local [all...] |
H A D | zfs_znode.c | 280 zfs_create_share_dir(zfsvfs_t *zfsvfs, dmu_tx_t *tx) argument 298 sharezp->z_zfsvfs = zfsvfs; 299 sharezp->z_is_sa = zfsvfs->z_use_sa; 306 error = zap_add(zfsvfs->z_os, MASTER_NODE_OBJ, 308 zfsvfs->z_shares_dir = sharezp->z_id; 358 zfs_znode_sa_init(zfsvfs_t *zfsvfs, znode_t *zp, argument 361 ASSERT(!POINTER_IS_VALID(zp->z_zfsvfs) || (zfsvfs == zp->z_zfsvfs)); 362 ASSERT(MUTEX_HELD(ZFS_OBJ_MUTEX(zfsvfs, zp->z_id))); 367 VERIFY0(sa_handle_get_from_db(zfsvfs->z_os, db, zp, 380 if (zp->z_id == zfsvfs 415 zfs_znode_alloc(zfsvfs_t *zfsvfs, dmu_buf_t *db, int blksz, dmu_object_type_t obj_type, sa_handle_t *hdl) argument 581 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; local 935 zfs_zget(zfsvfs_t *zfsvfs, uint64_t obj_num, znode_t **zpp) argument 1074 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1224 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1242 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1277 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1394 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1472 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1523 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1602 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local 1665 zfsvfs_t *zfsvfs; local 2174 zfsvfs_t *zfsvfs = zp->z_zfsvfs; local [all...] |
H A D | zfs_ctldir.c | 352 zfsctl_create(zfsvfs_t *zfsvfs) argument 359 ASSERT3P(zfsvfs->z_ctldir, ==, NULL); 367 VERIFY0(VFS_ROOT(zfsvfs->z_vfs, LK_EXCLUSIVE, &rvp)); 368 VERIFY0(sa_lookup(VTOZ(rvp)->z_sa_hdl, SA_ZPL_CRTIME(zfsvfs), 373 zfsvfs->z_ctldir = dot_zfs; 382 zfsctl_destroy(zfsvfs_t *zfsvfs) argument 384 sfs_destroy_node(zfsvfs->z_ctldir->snapdir); 385 sfs_destroy_node((sfs_node_t *)zfsvfs->z_ctldir); 386 zfsvfs->z_ctldir = NULL; 438 zfsctl_root(zfsvfs_t *zfsvfs, in argument 671 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 936 zfsvfs_t *zfsvfs = dvp->v_vfsp->vfs_data; local 1058 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 1120 zfsvfs_t *zfsvfs = vp->v_vfsp->vfs_data; local 1317 zfsvfs_t *zfsvfs = vfsp->vfs_data; local 1384 zfsvfs_t *zfsvfs = NULL; local [all...] |
/freebsd-current/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
H A D | zfs_vfsops_os.h | 45 typedef struct zfsvfs zfsvfs_t; 54 struct zfsvfs *vfs_data; 79 struct zfsvfs { struct 82 struct zfsvfs *z_parent; /* parent fs */ 139 #define ZFS_TEARDOWN_INIT(zfsvfs) \ 140 rrm_init(&(zfsvfs)->z_teardown_lock, B_FALSE) 142 #define ZFS_TEARDOWN_DESTROY(zfsvfs) \ 143 rrm_destroy(&(zfsvfs)->z_teardown_lock) 145 #define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \ 146 rrm_enter_read(&(zfsvfs) [all...] |
H A D | zfs_znode_impl.h | 103 zfs_enter(zfsvfs_t *zfsvfs, const char *tag) argument 105 ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag); 106 if (unlikely(zfsvfs->z_unmounted)) { 107 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); 115 zfs_exit(zfsvfs_t *zfsvfs, const char *tag) argument 117 zfs_exit_fs(zfsvfs); 118 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); 122 zpl_enter(zfsvfs_t *zfsvfs, const char *tag) argument 124 return (-zfs_enter(zfsvfs, tag)); 128 zpl_exit(zfsvfs_t *zfsvfs, cons argument [all...] |
H A D | zfs_dir.h | 67 extern void zfs_unlinked_drain(zfsvfs_t *zfsvfs); 68 extern void zfs_unlinked_drain_stop_wait(zfsvfs_t *zfsvfs);
|