/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zfs_vfsops.c | 257 zfs_is_readonly(zfsvfs_t *zfsvfs) in zfs_is_readonly() argument 259 return (!!(zfsvfs->z_sb->s_flags & SB_RDONLY)); in zfs_is_readonly() 266 zfsvfs_t *zfsvfs = sb->s_fs_info; in zfs_sync() local 275 if (zfsvfs != NULL) { in zfs_sync() 282 if ((error = zfs_enter(zfsvfs, FTAG)) != 0) in zfs_sync() 284 dp = dmu_objset_pool(zfsvfs->z_os); in zfs_sync() 291 zfs_exit(zfsvfs, FTAG); in zfs_sync() 295 if (zfsvfs->z_log != NULL) in zfs_sync() 296 zil_commit(zfsvfs->z_log, 0); in zfs_sync() 298 zfs_exit(zfsvfs, FTAG); in zfs_sync() [all …]
|
H A D | zfs_dir.c | 63 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, in zfs_match_find() argument 70 if (zfsvfs->z_norm) { in zfs_match_find() 83 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, in zfs_match_find() 86 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); in zfs_match_find() 99 if (zfsvfs->z_norm && !error && deflags) in zfs_match_find() 146 zfsvfs_t *zfsvfs = ZTOZSB(dzp); in zfs_dirent_lock() local 192 if (zfsvfs->z_norm != 0) { in zfs_dirent_lock() 200 if ((zfsvfs->z_case == ZFS_CASE_INSENSITIVE && in zfs_dirent_lock() 202 (zfsvfs->z_case == ZFS_CASE_MIXED && !(flag & ZCILOOK))) { in zfs_dirent_lock() 217 update = !zfsvfs->z_norm || in zfs_dirent_lock() [all …]
|
H A D | zfs_znode_os.c | 250 zfs_znode_held(zfsvfs_t *zfsvfs, uint64_t obj) in zfs_znode_held() argument 253 int i = ZFS_OBJ_HASH(zfsvfs, obj); in zfs_znode_held() 258 mutex_enter(&zfsvfs->z_hold_locks[i]); in zfs_znode_held() 259 zh = avl_find(&zfsvfs->z_hold_trees[i], &search, NULL); in zfs_znode_held() 261 mutex_exit(&zfsvfs->z_hold_locks[i]); in zfs_znode_held() 267 zfs_znode_hold_enter(zfsvfs_t *zfsvfs, uint64_t obj) in zfs_znode_hold_enter() argument 270 int i = ZFS_OBJ_HASH(zfsvfs, obj); in zfs_znode_hold_enter() 276 mutex_enter(&zfsvfs->z_hold_locks[i]); in zfs_znode_hold_enter() 277 zh = avl_find(&zfsvfs->z_hold_trees[i], &search, NULL); in zfs_znode_hold_enter() 281 avl_add(&zfsvfs->z_hold_trees[i], zh); in zfs_znode_hold_enter() [all …]
|
H A D | zfs_vnops_os.c | 183 zfsvfs_t *zfsvfs = ITOZSB(ip); in zfs_open() local 186 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_open() 192 zfs_exit(zfsvfs, FTAG); in zfs_open() 203 zil_async_to_sync(zfsvfs->z_log, zp->z_id); in zfs_open() 206 zfs_exit(zfsvfs, FTAG); in zfs_open() 215 zfsvfs_t *zfsvfs = ITOZSB(ip); in zfs_close() local 218 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_close() 225 zfs_exit(zfsvfs, FTAG); in zfs_close() 442 zfsvfs_t *zfsvfs = ZTOZSB(zdp); in zfs_lookup() local 473 if ((error = zfs_enter_verify_zp(zfsvfs, zdp, FTAG)) != 0) in zfs_lookup() [all …]
|
H A D | zfs_ctldir.c | 481 zfsctl_inode_alloc(zfsvfs_t *zfsvfs, uint64_t id, in zfsctl_inode_alloc() argument 489 ip = new_inode(zfsvfs->z_sb); in zfsctl_inode_alloc() 536 mutex_enter(&zfsvfs->z_znodes_lock); in zfsctl_inode_alloc() 537 list_insert_tail(&zfsvfs->z_all_znodes, zp); in zfsctl_inode_alloc() 539 mutex_exit(&zfsvfs->z_znodes_lock); in zfsctl_inode_alloc() 550 zfsctl_inode_lookup(zfsvfs_t *zfsvfs, uint64_t id, in zfsctl_inode_lookup() argument 559 ip = ilookup(zfsvfs->z_sb, (unsigned long)id); in zfsctl_inode_lookup() 564 pool = dmu_objset_pool(zfsvfs->z_os); in zfsctl_inode_lookup() 575 ip = zfsctl_inode_alloc(zfsvfs, id, fops, ops, creation); in zfsctl_inode_lookup() 592 zfsctl_create(zfsvfs_t *zfsvfs) in zfsctl_create() argument [all …]
|
H A D | zpl_ctldir.c | 57 zfsvfs_t *zfsvfs = ITOZSB(file_inode(filp)); in zpl_root_iterate() local 60 if (zfsvfs->z_show_ctldir == ZFS_SNAPDIR_DISABLED) { in zpl_root_iterate() 64 if ((error = zpl_enter(zfsvfs, FTAG)) != 0) in zpl_root_iterate() 86 zpl_exit(zfsvfs, FTAG); in zpl_root_iterate() 248 zfsvfs_t *zfsvfs = ITOZSB(file_inode(filp)); in zpl_snapdir_iterate() local 255 if ((error = zpl_enter(zfsvfs, FTAG)) != 0) in zpl_snapdir_iterate() 265 dsl_pool_config_enter(dmu_objset_pool(zfsvfs->z_os), FTAG); in zpl_snapdir_iterate() 266 error = -dmu_snapshot_list_next(zfsvfs->z_os, MAXNAMELEN, in zpl_snapdir_iterate() 268 dsl_pool_config_exit(dmu_objset_pool(zfsvfs->z_os), FTAG); in zpl_snapdir_iterate() 280 zpl_exit(zfsvfs, FTAG); in zpl_snapdir_iterate() [all …]
|
H A D | zpl_super.c | 176 __zpl_show_devname(struct seq_file *seq, zfsvfs_t *zfsvfs) in __zpl_show_devname() argument 179 if ((error = zpl_enter(zfsvfs, FTAG)) != 0) in __zpl_show_devname() 183 dmu_objset_name(zfsvfs->z_os, fsname); in __zpl_show_devname() 200 zpl_exit(zfsvfs, FTAG); in __zpl_show_devname() 212 __zpl_show_options(struct seq_file *seq, zfsvfs_t *zfsvfs) in __zpl_show_options() argument 215 zfsvfs->z_flags & ZSB_XATTR ? "xattr" : "noxattr"); in __zpl_show_options() 218 switch (zfsvfs->z_acl_type) { in __zpl_show_options() 228 switch (zfsvfs->z_case) { in __zpl_show_options() 267 zfsvfs_t *zfsvfs = s->s_fs_info; in zpl_test_super() local 276 return (zfsvfs != NULL && os == zfsvfs->z_os); in zpl_test_super() [all …]
|
H A D | zfs_acl.c | 372 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_acl_znode_info() local 379 if ((error = sa_size(zp->z_sa_hdl, SA_ZPL_DACL_ACES(zfsvfs), in zfs_acl_znode_info() 383 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DACL_COUNT(zfsvfs), in zfs_acl_znode_info() 388 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zfsvfs), in zfs_acl_znode_info() 650 zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, umode_t obj_mode, zfs_acl_t *aclp, in zfs_copy_ace_2_fuid() argument 668 aceptr->z_fuid = zfs_fuid_create(zfsvfs, acep->a_who, in zfs_copy_ace_2_fuid() 712 zfs_copy_fuid_2_ace(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, cred_t *cr, in zfs_copy_fuid_2_ace() argument 755 acep->a_who = zfs_fuid_map_id(zfsvfs, who, in zfs_copy_fuid_2_ace() 1357 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_aclset_common() local 1372 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NULL, in zfs_aclset_common() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_vfsops.c | 239 zfs_getquota(zfsvfs_t *zfsvfs, uid_t id, int isgroup, struct dqblk64 *dqp) in zfs_getquota() 248 quotaobj = isgroup ? zfsvfs->z_groupquota_obj : zfsvfs->z_userquota_obj; in zfs_getquota() 250 if (quotaobj == 0 || zfsvfs->z_replay) { in zfs_getquota() 255 if ((error = zap_lookup(zfsvfs->z_os, quotaobj, in zfs_getquota() 266 error = zap_lookup(zfsvfs->z_os, usedobj, buf, sizeof (used), 1, &used); in zfs_getquota() 292 zfsvfs_t *zfsvfs = vfsp->vfs_data; in zfs_quotactl() 303 if ((error = zfs_enter(zfsvfs, FTAG)) != 0) in zfs_quotactl() 354 * Create fuid using zfs_fuid_create(zfsvfs, id, in zfs_quotactl() 390 error = zfs_set_userquota(zfsvfs, quota_typ in zfs_quotactl() 237 zfs_getquota(zfsvfs_t * zfsvfs,uid_t id,int isgroup,struct dqblk64 * dqp) zfs_getquota() argument 290 zfsvfs_t *zfsvfs = vfsp->vfs_data; zfs_quotactl() local 407 zfs_is_readonly(zfsvfs_t * zfsvfs) zfs_is_readonly() argument 434 zfsvfs_t *zfsvfs = vfsp->vfs_data; zfs_sync() local 470 zfsvfs_t *zfsvfs = arg; atime_changed_cb() local 488 zfsvfs_t *zfsvfs = arg; xattr_changed_cb() local 505 zfsvfs_t *zfsvfs = arg; blksz_changed_cb() local 517 zfsvfs_t *zfsvfs = arg; readonly_changed_cb() local 535 zfsvfs_t *zfsvfs = arg; setuid_changed_cb() local 551 zfsvfs_t *zfsvfs = arg; exec_changed_cb() local 575 zfsvfs_t *zfsvfs = arg; nbmand_changed_cb() local 588 zfsvfs_t *zfsvfs = arg; snapdir_changed_cb() local 596 zfsvfs_t *zfsvfs = arg; acl_mode_changed_cb() local 604 zfsvfs_t *zfsvfs = arg; acl_inherit_changed_cb() local 612 zfsvfs_t *zfsvfs = arg; acl_type_changed_cb() local 620 zfsvfs_t *zfsvfs = arg; longname_changed_cb() local 630 zfsvfs_t *zfsvfs = NULL; zfs_register_callbacks() local 797 zfsvfs_init(zfsvfs_t * zfsvfs,objset_t * os) zfsvfs_init() argument 970 zfsvfs_t *zfsvfs; zfsvfs_create() local 1001 zfsvfs_create_impl(zfsvfs_t ** zfvp,zfsvfs_t * zfsvfs,objset_t * os) zfsvfs_create_impl() argument 1033 zfsvfs_setup(zfsvfs_t * zfsvfs,boolean_t mounting) zfsvfs_setup() argument 1150 zfsvfs_free(zfsvfs_t * zfsvfs) zfsvfs_free() argument 1169 zfs_set_fuid_feature(zfsvfs_t * zfsvfs) zfs_set_fuid_feature() argument 1180 zfsvfs_t *zfsvfs; zfs_domount() local 1271 zfs_unregister_callbacks(zfsvfs_t * zfsvfs) zfs_unregister_callbacks() argument 1412 zfsvfs_t *zfsvfs = vfsp->vfs_data; zfs_mount() local 1450 zfsvfs_t *zfsvfs = vfsp->vfs_data; zfs_statfs() local 1512 zfsvfs_t *zfsvfs = vfsp->vfs_data; zfs_root() local 1542 zfsvfs_teardown(zfsvfs_t * zfsvfs,boolean_t unmounting) zfsvfs_teardown() argument 1674 zfsvfs_t *zfsvfs = vfsp->vfs_data; zfs_umount() local 1751 zfsvfs_t *zfsvfs = vfsp->vfs_data; zfs_vget() local 1788 zfsvfs_t *zfsvfs = vfsp->vfs_data; zfs_checkexp() local 1810 zfsvfs_t *zfsvfs = vfsp->vfs_data; zfs_fhtovp() local 1946 zfs_suspend_fs(zfsvfs_t * zfsvfs) zfs_suspend_fs() argument 1964 zfs_resume_fs(zfsvfs_t * zfsvfs,dsl_dataset_t * ds) zfs_resume_fs() argument 2027 zfsvfs_t *zfsvfs = vfsp->vfs_data; zfs_freevfs() local 2144 zfs_end_fs(zfsvfs_t * zfsvfs,dsl_dataset_t * ds) zfs_end_fs() argument 2175 zfs_set_version(zfsvfs_t * zfsvfs,uint64_t newvers) zfs_set_version() argument [all...] |
H A D | zfs_dir.c | 69 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, in zfs_match_find() argument 74 if (zfsvfs->z_norm) { in zfs_match_find() 80 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, in zfs_match_find() 83 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); in zfs_match_find() 113 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; in zfs_dirent_lookup() local 119 if (zfsvfs->z_replay == B_FALSE) in zfs_dirent_lookup() 147 if (zfsvfs->z_norm != 0) { in zfs_dirent_lookup() 155 if (zfsvfs->z_case == ZFS_CASE_MIXED) { in zfs_dirent_lookup() 175 error = sa_lookup(dzp->z_sa_hdl, SA_ZPL_XATTR(zfsvfs), &zoid, in zfs_dirent_lookup() 180 error = zfs_match_find(zfsvfs, dzp, name, mt, &zoid); in zfs_dirent_lookup() [all …]
|
H A D | zfs_znode_os.c | 271 zfs_create_share_dir(zfsvfs_t *zfsvfs, dmu_tx_t *tx) in zfs_create_share_dir() argument 289 sharezp->z_zfsvfs = zfsvfs; in zfs_create_share_dir() 290 sharezp->z_is_sa = zfsvfs->z_use_sa; in zfs_create_share_dir() 297 error = zap_add(zfsvfs->z_os, MASTER_NODE_OBJ, in zfs_create_share_dir() 299 zfsvfs->z_shares_dir = sharezp->z_id; in zfs_create_share_dir() 349 zfs_znode_sa_init(zfsvfs_t *zfsvfs, znode_t *zp, in zfs_znode_sa_init() argument 352 ASSERT(!POINTER_IS_VALID(zp->z_zfsvfs) || (zfsvfs == zp->z_zfsvfs)); in zfs_znode_sa_init() 353 ASSERT(MUTEX_HELD(ZFS_OBJ_MUTEX(zfsvfs, zp->z_id))); in zfs_znode_sa_init() 358 VERIFY0(sa_handle_get_from_db(zfsvfs->z_os, db, zp, in zfs_znode_sa_init() 371 if (zp->z_id == zfsvfs->z_root && zfsvfs->z_parent == zfsvfs) in zfs_znode_sa_init() [all …]
|
H A D | zfs_vnops_os.c | 221 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_open() local 224 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_open() 229 zfs_exit(zfsvfs, FTAG); in zfs_open() 240 zil_async_to_sync(zfsvfs->z_log, zp->z_id); in zfs_open() 243 zfs_exit(zfsvfs, FTAG); in zfs_open() 252 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_close() local 255 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_close() 262 zfs_exit(zfsvfs, FTAG); in zfs_close() 575 zfsvfs_t *zfsvfs __unused = zdp->z_zfsvfs; in zfs_lookup_lock() 579 if (zfsvfs->z_replay == B_FALSE) in zfs_lookup_lock() [all …]
|
H A D | zfs_ctldir.c | 352 zfsctl_create(zfsvfs_t *zfsvfs) in zfsctl_create() argument 359 ASSERT3P(zfsvfs->z_ctldir, ==, NULL); in zfsctl_create() 367 VERIFY0(VFS_ROOT(zfsvfs->z_vfs, LK_EXCLUSIVE, &rvp)); in zfsctl_create() 368 VERIFY0(sa_lookup(VTOZ(rvp)->z_sa_hdl, SA_ZPL_CRTIME(zfsvfs), in zfsctl_create() 373 zfsvfs->z_ctldir = dot_zfs; in zfsctl_create() 382 zfsctl_destroy(zfsvfs_t *zfsvfs) in zfsctl_destroy() argument 384 sfs_destroy_node(zfsvfs->z_ctldir->snapdir); in zfsctl_destroy() 385 sfs_destroy_node((sfs_node_t *)zfsvfs->z_ctldir); in zfsctl_destroy() 386 zfsvfs->z_ctldir = NULL; in zfsctl_destroy() 438 zfsctl_root(zfsvfs_t *zfsvfs, int flags, vnode_t **vpp) in zfsctl_root() argument [all …]
|
H A D | zfs_ioctl_os.c | 56 zfs_vfs_held(zfsvfs_t *zfsvfs) in zfs_vfs_held() argument 58 return (zfsvfs->z_vfs != NULL); in zfs_vfs_held() 62 zfs_vfs_rele(zfsvfs_t *zfsvfs) in zfs_vfs_rele() argument 64 vfs_unbusy(zfsvfs->z_vfs); in zfs_vfs_rele() 138 zfsvfs_t *zfsvfs; in zfs_ioctl_update_mount_cache() local 140 if (getzfsvfs(dsname, &zfsvfs) == 0) { in zfs_ioctl_update_mount_cache() 141 struct mount *mp = zfsvfs->z_vfs; in zfs_ioctl_update_mount_cache() 143 zfs_vfs_rele(zfsvfs); in zfs_ioctl_update_mount_cache()
|
H A D | zfs_acl.c | 373 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_acl_znode_info() local 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() 389 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zfsvfs), in zfs_acl_znode_info() 652 zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, vtype_t obj_type, zfs_acl_t *aclp, in zfs_copy_ace_2_fuid() argument 670 aceptr->z_fuid = zfs_fuid_create(zfsvfs, acep->a_who, in zfs_copy_ace_2_fuid() 714 zfs_copy_fuid_2_ace(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, cred_t *cr, in zfs_copy_fuid_2_ace() argument 757 acep->a_who = zfs_fuid_map_id(zfsvfs, who, in zfs_copy_fuid_2_ace() 1168 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_aclset_common() local 1187 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NULL, in zfs_aclset_common() [all …]
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/zfs/sys/ |
H A D | zfs_vfsops_os.h | 46 typedef struct zfsvfs zfsvfs_t; 49 struct zfsvfs { struct 105 #define ZFS_TEARDOWN_INIT(zfsvfs) \ argument 106 rms_init(&(zfsvfs)->z_teardown_lock, "zfs teardown") 108 #define ZFS_TEARDOWN_DESTROY(zfsvfs) \ argument 109 rms_destroy(&(zfsvfs)->z_teardown_lock) 111 #define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \ argument 112 rms_rlock(&(zfsvfs)->z_teardown_lock); 114 #define ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag) \ argument 115 rms_runlock(&(zfsvfs)->z_teardown_lock) [all …]
|
H A D | zfs_znode_impl.h | 55 struct zfsvfs *z_zfsvfs; \ 128 zfs_enter(zfsvfs_t *zfsvfs, const char *tag) in zfs_enter() argument 130 ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag); in zfs_enter() 131 if (__predict_false((zfsvfs)->z_unmounted)) { in zfs_enter() 132 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); in zfs_enter() 140 zfs_exit(zfsvfs_t *zfsvfs, const char *tag) in zfs_exit() argument 142 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); in zfs_exit() 149 #define ZFS_OBJ_MUTEX(zfsvfs, obj_num) \ argument 150 (&(zfsvfs)->z_hold_mtx[ZFS_OBJ_HASH(obj_num)]) 151 #define ZFS_OBJ_HOLD_ENTER(zfsvfs, obj_num) \ argument [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_quota.c | 116 fuidstr_to_sid(zfsvfs_t *zfsvfs, const char *fuidstr, in fuidstr_to_sid() argument 124 domain = zfs_fuid_find_by_idx(zfsvfs, FUID_INDEX(fuid)); in fuidstr_to_sid() 133 zfs_userquota_prop_to_obj(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type) in zfs_userquota_prop_to_obj() argument 146 return (zfsvfs->z_userquota_obj); in zfs_userquota_prop_to_obj() 148 return (zfsvfs->z_groupquota_obj); in zfs_userquota_prop_to_obj() 150 return (zfsvfs->z_userobjquota_obj); in zfs_userquota_prop_to_obj() 152 return (zfsvfs->z_groupobjquota_obj); in zfs_userquota_prop_to_obj() 154 return (zfsvfs->z_projectquota_obj); in zfs_userquota_prop_to_obj() 156 return (zfsvfs->z_projectobjquota_obj); in zfs_userquota_prop_to_obj() 163 zfs_userspace_many(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type, in zfs_userspace_many() argument [all …]
|
H A D | zfs_fuid.c | 192 zfs_fuid_init(zfsvfs_t *zfsvfs) in zfs_fuid_init() argument 194 rw_enter(&zfsvfs->z_fuid_lock, RW_WRITER); in zfs_fuid_init() 196 if (zfsvfs->z_fuid_loaded) { in zfs_fuid_init() 197 rw_exit(&zfsvfs->z_fuid_lock); in zfs_fuid_init() 201 zfs_fuid_avl_tree_create(&zfsvfs->z_fuid_idx, &zfsvfs->z_fuid_domain); in zfs_fuid_init() 203 (void) zap_lookup(zfsvfs->z_os, MASTER_NODE_OBJ, in zfs_fuid_init() 204 ZFS_FUID_TABLES, 8, 1, &zfsvfs->z_fuid_obj); in zfs_fuid_init() 205 if (zfsvfs->z_fuid_obj != 0) { in zfs_fuid_init() 206 zfsvfs->z_fuid_size = zfs_fuid_table_load(zfsvfs->z_os, in zfs_fuid_init() 207 zfsvfs->z_fuid_obj, &zfsvfs->z_fuid_idx, in zfs_fuid_init() [all …]
|
H A D | zfs_sa.c | 131 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_sa_get_scanstamp() local 137 if (sa_lookup(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), in zfs_sa_get_scanstamp() 165 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_sa_set_scanstamp() local 171 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), in zfs_sa_set_scanstamp() 188 VERIFY(0 == sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zfsvfs), in zfs_sa_set_scanstamp() 196 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_sa_get_xattr() local 205 error = sa_size(zp->z_sa_hdl, SA_ZPL_DXATTR(zfsvfs), &size); in zfs_sa_get_xattr() 216 error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DXATTR(zfsvfs), obj, size); in zfs_sa_get_xattr() 228 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_sa_set_xattr() local 252 zilog = zfsvfs->z_log; in zfs_sa_set_xattr() [all …]
|
H A D | zfs_vnops.c | 100 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_fsync() local 102 if (zfsvfs->z_os->os_sync != ZFS_SYNC_DISABLED) { in zfs_fsync() 103 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_fsync() 106 zil_commit(zfsvfs->z_log, zp->z_id); in zfs_fsync() 108 zfs_exit(zfsvfs, FTAG); in zfs_fsync() 178 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_holey() local 181 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_holey() 186 zfs_exit(zfsvfs, FTAG); in zfs_holey() 194 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_access() local 197 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_access() [all …]
|
H A D | zfs_replay.c | 294 zfsvfs_t *zfsvfs = arg1; in zfs_replay_create_acl() local 335 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0) in zfs_replay_create_acl() 357 error = dnode_try_claim(zfsvfs->z_os, objid, dnodesize >> DNODE_SHIFT); in zfs_replay_create_acl() 367 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, in zfs_replay_create_acl() 383 if (zfsvfs->z_fuid_replay == NULL) { in zfs_replay_create_acl() 386 zfsvfs->z_fuid_replay = in zfs_replay_create_acl() 403 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, in zfs_replay_create_acl() 418 if (zfsvfs->z_fuid_replay == NULL) { in zfs_replay_create_acl() 421 zfsvfs->z_fuid_replay = in zfs_replay_create_acl() 447 if (zfsvfs->z_fuid_replay) in zfs_replay_create_acl() [all …]
|
/freebsd/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; 80 struct zfsvfs { struct 83 struct zfsvfs *z_parent; /* parent fs */ argument 141 #define ZFS_TEARDOWN_INIT(zfsvfs) \ argument 142 rrm_init(&(zfsvfs)->z_teardown_lock, B_FALSE) 144 #define ZFS_TEARDOWN_DESTROY(zfsvfs) \ argument 145 rrm_destroy(&(zfsvfs)->z_teardown_lock) 147 #define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \ argument 148 rrm_enter_read(&(zfsvfs)->z_teardown_lock, tag); [all …]
|
H A D | zfs_znode_impl.h | 91 zfs_enter(zfsvfs_t *zfsvfs, const char *tag) in zfs_enter() argument 93 ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag); in zfs_enter() 94 if (unlikely(zfsvfs->z_unmounted)) { in zfs_enter() 95 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); in zfs_enter() 103 zfs_exit(zfsvfs_t *zfsvfs, const char *tag) in zfs_exit() argument 105 zfs_exit_fs(zfsvfs); in zfs_exit() 106 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); in zfs_exit() 110 zpl_enter(zfsvfs_t *zfsvfs, const char *tag) in zpl_enter() argument 112 return (-zfs_enter(zfsvfs, tag)); in zpl_enter() 116 zpl_exit(zfsvfs_t *zfsvfs, const char *tag) in zpl_exit() argument [all …]
|
/freebsd/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);
|