Home
last modified time | relevance | path

Searched refs:zfsvfs (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_vfsops.c78 zfs_is_readonly(zfsvfs_t *zfsvfs) in zfs_is_readonly() argument
80 return (!!(zfsvfs->z_sb->s_flags & SB_RDONLY)); in zfs_is_readonly()
87 zfsvfs_t *zfsvfs = sb->s_fs_info; in zfs_sync() local
88 ASSERT3P(zfsvfs, !=, NULL); in zfs_sync()
97 int err = zfs_enter(zfsvfs, FTAG); in zfs_sync()
106 err = zil_commit_flags(zfsvfs->z_log, 0, ZIL_COMMIT_NOW); in zfs_sync()
107 zfs_exit(zfsvfs, FTAG); in zfs_sync()
115 zfsvfs_t *zfsvfs = arg; in atime_changed_cb() local
116 struct super_block *sb = zfsvfs->z_sb; in atime_changed_cb()
141 zfsvfs_t *zfsvfs = arg; in xattr_changed_cb() local
[all …]
H A Dzfs_dir.c54 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, in zfs_match_find() argument
61 if (zfsvfs->z_norm) { in zfs_match_find()
74 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, in zfs_match_find()
77 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); in zfs_match_find()
90 if (zfsvfs->z_norm && !error && deflags) in zfs_match_find()
137 zfsvfs_t *zfsvfs = ZTOZSB(dzp); in zfs_dirent_lock() local
183 if (zfsvfs->z_norm != 0) { in zfs_dirent_lock()
191 if ((zfsvfs->z_case == ZFS_CASE_INSENSITIVE && in zfs_dirent_lock()
193 (zfsvfs->z_case == ZFS_CASE_MIXED && !(flag & ZCILOOK))) { in zfs_dirent_lock()
208 update = !zfsvfs->z_norm || in zfs_dirent_lock()
[all …]
H A Dzfs_znode_os.c241 zfs_znode_held(zfsvfs_t *zfsvfs, uint64_t obj) in zfs_znode_held() argument
244 int i = ZFS_OBJ_HASH(zfsvfs, obj); in zfs_znode_held()
249 mutex_enter(&zfsvfs->z_hold_locks[i]); in zfs_znode_held()
250 zh = avl_find(&zfsvfs->z_hold_trees[i], &search, NULL); in zfs_znode_held()
252 mutex_exit(&zfsvfs->z_hold_locks[i]); in zfs_znode_held()
258 zfs_znode_hold_enter(zfsvfs_t *zfsvfs, uint64_t obj) in zfs_znode_hold_enter() argument
261 int i = ZFS_OBJ_HASH(zfsvfs, obj); in zfs_znode_hold_enter()
267 mutex_enter(&zfsvfs->z_hold_locks[i]); in zfs_znode_hold_enter()
268 zh = avl_find(&zfsvfs->z_hold_trees[i], &search, NULL); in zfs_znode_hold_enter()
272 avl_add(&zfsvfs->z_hold_trees[i], zh); in zfs_znode_hold_enter()
[all …]
H A Dzfs_ctldir.c506 zfsctl_inode_alloc(zfsvfs_t *zfsvfs, uint64_t id, in zfsctl_inode_alloc() argument
514 ip = new_inode(zfsvfs->z_sb); in zfsctl_inode_alloc()
560 mutex_enter(&zfsvfs->z_znodes_lock); in zfsctl_inode_alloc()
561 list_insert_tail(&zfsvfs->z_all_znodes, zp); in zfsctl_inode_alloc()
563 mutex_exit(&zfsvfs->z_znodes_lock); in zfsctl_inode_alloc()
574 zfsctl_inode_lookup(zfsvfs_t *zfsvfs, uint64_t id, in zfsctl_inode_lookup() argument
583 ip = ilookup(zfsvfs->z_sb, (unsigned long)id); in zfsctl_inode_lookup()
588 pool = dmu_objset_pool(zfsvfs->z_os); in zfsctl_inode_lookup()
599 ip = zfsctl_inode_alloc(zfsvfs, id, fops, ops, creation); in zfsctl_inode_lookup()
616 zfsctl_create(zfsvfs_t *zfsvfs) in zfsctl_create() argument
[all …]
H A Dzfs_vnops_os.c177 zfsvfs_t *zfsvfs = ITOZSB(ip); in zfs_open() local
180 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_open()
186 zfs_exit(zfsvfs, FTAG); in zfs_open()
196 if (!zfsvfs->z_issnap && (flag & O_SYNC)) { in zfs_open()
198 zil_async_to_sync(zfsvfs->z_log, zp->z_id); in zfs_open()
201 zfs_exit(zfsvfs, FTAG); in zfs_open()
210 zfsvfs_t *zfsvfs = ITOZSB(ip); in zfs_close() local
213 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_close()
217 if (!zfsvfs->z_issnap && (flag & O_SYNC)) in zfs_close()
220 zfs_exit(zfsvfs, FTAG); in zfs_close()
[all …]
H A Dzpl_ctldir.c50 zfsvfs_t *zfsvfs = ITOZSB(file_inode(filp)); in zpl_root_iterate() local
53 if (zfsvfs->z_show_ctldir == ZFS_SNAPDIR_DISABLED) { in zpl_root_iterate()
57 if ((error = zpl_enter(zfsvfs, FTAG)) != 0) in zpl_root_iterate()
79 zpl_exit(zfsvfs, FTAG); in zpl_root_iterate()
328 zfsvfs_t *zfsvfs = am_path.mnt->mnt_sb->s_fs_info; in zpl_snapdir_manage() local
329 if (dmu_objset_spa(zfsvfs->z_os) != se->se_spa || in zpl_snapdir_manage()
330 dmu_objset_id(zfsvfs->z_os) != se->se_objsetid) { in zpl_snapdir_manage()
622 zfsvfs_t *zfsvfs = ITOZSB(file_inode(filp)); in zpl_snapdir_iterate() local
629 if ((error = zpl_enter(zfsvfs, FTAG)) != 0) in zpl_snapdir_iterate()
639 dsl_pool_config_enter(dmu_objset_pool(zfsvfs->z_os), FTAG); in zpl_snapdir_iterate()
[all …]
H A Dzpl_super.c206 zfsvfs_t *zfsvfs = sb->s_fs_info; in zpl_sync_fs() local
207 ASSERT3P(zfsvfs, !=, NULL); in zpl_sync_fs()
208 if (zfs_enter(zfsvfs, FTAG) == 0) { in zpl_sync_fs()
209 txg_wait_synced(dmu_objset_pool(zfsvfs->z_os), 0); in zpl_sync_fs()
210 zfs_exit(zfsvfs, FTAG); in zpl_sync_fs()
261 __zpl_show_devname(struct seq_file *seq, zfsvfs_t *zfsvfs) in __zpl_show_devname() argument
264 if ((error = zpl_enter(zfsvfs, FTAG)) != 0) in __zpl_show_devname()
268 dmu_objset_name(zfsvfs->z_os, fsname); in __zpl_show_devname()
285 zpl_exit(zfsvfs, FTAG); in __zpl_show_devname()
297 __zpl_show_options(struct seq_file *seq, zfsvfs_t *zfsvfs) in __zpl_show_options() argument
[all …]
H A Dzfs_acl.c364 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_acl_znode_info() local
371 if ((error = sa_size(zp->z_sa_hdl, SA_ZPL_DACL_ACES(zfsvfs), in zfs_acl_znode_info()
375 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DACL_COUNT(zfsvfs), in zfs_acl_znode_info()
380 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zfsvfs), in zfs_acl_znode_info()
642 zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, umode_t obj_mode, zfs_acl_t *aclp, in zfs_copy_ace_2_fuid() argument
660 aceptr->z_fuid = zfs_fuid_create(zfsvfs, acep->a_who, in zfs_copy_ace_2_fuid()
704 zfs_copy_fuid_2_ace(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, cred_t *cr, in zfs_copy_fuid_2_ace() argument
747 acep->a_who = zfs_fuid_map_id(zfsvfs, who, in zfs_copy_fuid_2_ace()
1349 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_aclset_common() local
1364 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 Dzfs_vfsops.c231 zfs_getquota(zfsvfs_t *zfsvfs, uid_t id, int isgroup, struct dqblk64 *dqp) in zfs_getquota() argument
240 quotaobj = isgroup ? zfsvfs->z_groupquota_obj : zfsvfs->z_userquota_obj; in zfs_getquota()
241 defaultquota = isgroup ? zfsvfs->z_defaultgroupquota : in zfs_getquota()
242 zfsvfs->z_defaultuserquota; in zfs_getquota()
244 if (zfsvfs->z_replay) in zfs_getquota()
253 error = zap_lookup(zfsvfs->z_os, quotaobj, buf, sizeof (quota), in zfs_getquota()
264 error = zap_lookup(zfsvfs->z_os, usedobj, buf, sizeof (used), 1, &used); in zfs_getquota()
288 zfsvfs_t *zfsvfs = vfsp->vfs_data; in zfs_quotactl() local
299 if ((error = zfs_enter(zfsvfs, FTAG)) != 0) in zfs_quotactl()
386 error = zfs_set_userquota(zfsvfs, quota_type, in zfs_quotactl()
[all …]
H A Dzfs_znode_os.c263 zfs_create_share_dir(zfsvfs_t *zfsvfs, dmu_tx_t *tx) in zfs_create_share_dir() argument
282 sharezp->z_zfsvfs = zfsvfs; in zfs_create_share_dir()
283 sharezp->z_is_sa = zfsvfs->z_use_sa; in zfs_create_share_dir()
291 error = zap_add(zfsvfs->z_os, MASTER_NODE_OBJ, in zfs_create_share_dir()
293 zfsvfs->z_shares_dir = sharezp->z_id; in zfs_create_share_dir()
343 zfs_znode_sa_init(zfsvfs_t *zfsvfs, znode_t *zp, in zfs_znode_sa_init() argument
346 ASSERT(!POINTER_IS_VALID(zp->z_zfsvfs) || (zfsvfs == zp->z_zfsvfs)); in zfs_znode_sa_init()
347 ASSERT(MUTEX_HELD(ZFS_OBJ_MUTEX(zfsvfs, zp->z_id))); in zfs_znode_sa_init()
352 VERIFY0(sa_handle_get_from_db(zfsvfs->z_os, db, zp, in zfs_znode_sa_init()
365 if (zp->z_id == zfsvfs->z_root && zfsvfs->z_parent == zfsvfs) in zfs_znode_sa_init()
[all …]
H A Dzfs_dir.c60 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, in zfs_match_find() argument
65 if (zfsvfs->z_norm) { in zfs_match_find()
71 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, in zfs_match_find()
74 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); in zfs_match_find()
104 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; in zfs_dirent_lookup() local
110 if (zfsvfs->z_replay == B_FALSE) in zfs_dirent_lookup()
138 if (zfsvfs->z_norm != 0) { in zfs_dirent_lookup()
146 if (zfsvfs->z_case == ZFS_CASE_MIXED) { in zfs_dirent_lookup()
166 error = sa_lookup(dzp->z_sa_hdl, SA_ZPL_XATTR(zfsvfs), &zoid, in zfs_dirent_lookup()
171 error = zfs_match_find(zfsvfs, dzp, name, mt, &zoid); in zfs_dirent_lookup()
[all …]
H A Dzfs_vnops_os.c212 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_open() local
215 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_open()
220 zfs_exit(zfsvfs, FTAG); in zfs_open()
230 if (!zfsvfs->z_issnap && (flag & O_SYNC)) { in zfs_open()
232 zil_async_to_sync(zfsvfs->z_log, zp->z_id); in zfs_open()
235 zfs_exit(zfsvfs, FTAG); in zfs_open()
244 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_close() local
247 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_close()
251 if (!zfsvfs->z_issnap && (flag & O_SYNC) && (count == 1)) in zfs_close()
254 zfs_exit(zfsvfs, FTAG); in zfs_close()
[all …]
H A Dzfs_ctldir.c343 zfsctl_create(zfsvfs_t *zfsvfs) in zfsctl_create() argument
350 ASSERT0P(zfsvfs->z_ctldir); in zfsctl_create()
358 VERIFY0(VFS_ROOT(zfsvfs->z_vfs, LK_EXCLUSIVE, &rvp)); in zfsctl_create()
359 VERIFY0(sa_lookup(VTOZ(rvp)->z_sa_hdl, SA_ZPL_CRTIME(zfsvfs), in zfsctl_create()
364 zfsvfs->z_ctldir = dot_zfs; in zfsctl_create()
373 zfsctl_destroy(zfsvfs_t *zfsvfs) in zfsctl_destroy() argument
375 sfs_destroy_node(zfsvfs->z_ctldir->snapdir); in zfsctl_destroy()
376 sfs_destroy_node((sfs_node_t *)zfsvfs->z_ctldir); in zfsctl_destroy()
377 zfsvfs->z_ctldir = NULL; in zfsctl_destroy()
429 zfsctl_root(zfsvfs_t *zfsvfs, int flags, vnode_t **vpp) in zfsctl_root() argument
[all …]
H A Dzfs_ioctl_os.c57 zfs_vfs_held(zfsvfs_t *zfsvfs) in zfs_vfs_held() argument
59 return (zfsvfs->z_vfs != NULL); in zfs_vfs_held()
63 zfs_vfs_rele(zfsvfs_t *zfsvfs) in zfs_vfs_rele() argument
65 vfs_unbusy(zfsvfs->z_vfs); in zfs_vfs_rele()
139 zfsvfs_t *zfsvfs; in zfs_ioctl_update_mount_cache() local
141 if (getzfsvfs(dsname, &zfsvfs) == 0) { in zfs_ioctl_update_mount_cache()
142 struct mount *mp = zfsvfs->z_vfs; in zfs_ioctl_update_mount_cache()
144 zfs_vfs_rele(zfsvfs); in zfs_ioctl_update_mount_cache()
H A Dzfs_acl.c365 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_acl_znode_info() local
372 if ((error = sa_size(zp->z_sa_hdl, SA_ZPL_DACL_ACES(zfsvfs), in zfs_acl_znode_info()
376 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DACL_COUNT(zfsvfs), in zfs_acl_znode_info()
381 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zfsvfs), in zfs_acl_znode_info()
644 zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, vtype_t obj_type, zfs_acl_t *aclp, in zfs_copy_ace_2_fuid() argument
662 aceptr->z_fuid = zfs_fuid_create(zfsvfs, acep->a_who, in zfs_copy_ace_2_fuid()
706 zfs_copy_fuid_2_ace(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, cred_t *cr, in zfs_copy_fuid_2_ace() argument
749 acep->a_who = zfs_fuid_map_id(zfsvfs, who, in zfs_copy_fuid_2_ace()
1160 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_aclset_common() local
1179 SA_ADD_BULK_ATTR(bulk, count, SA_ZPL_MODE(zfsvfs), NULL, in zfs_aclset_common()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzfs_quota.c111 fuidstr_to_sid(zfsvfs_t *zfsvfs, const char *fuidstr, in fuidstr_to_sid() argument
119 domain = zfs_fuid_find_by_idx(zfsvfs, FUID_INDEX(fuid)); in fuidstr_to_sid()
128 zfs_userquota_prop_to_obj(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type) in zfs_userquota_prop_to_obj() argument
141 return (zfsvfs->z_userquota_obj); in zfs_userquota_prop_to_obj()
143 return (zfsvfs->z_groupquota_obj); in zfs_userquota_prop_to_obj()
145 return (zfsvfs->z_userobjquota_obj); in zfs_userquota_prop_to_obj()
147 return (zfsvfs->z_groupobjquota_obj); in zfs_userquota_prop_to_obj()
149 return (zfsvfs->z_projectquota_obj); in zfs_userquota_prop_to_obj()
151 return (zfsvfs->z_projectobjquota_obj); in zfs_userquota_prop_to_obj()
158 zfs_usedquota_prop_to_default(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type) in zfs_usedquota_prop_to_default() argument
[all …]
H A Dzfs_fuid.c178 zfs_fuid_init(zfsvfs_t *zfsvfs) in zfs_fuid_init() argument
180 rw_enter(&zfsvfs->z_fuid_lock, RW_WRITER); in zfs_fuid_init()
182 if (zfsvfs->z_fuid_loaded) { in zfs_fuid_init()
183 rw_exit(&zfsvfs->z_fuid_lock); in zfs_fuid_init()
187 zfs_fuid_avl_tree_create(&zfsvfs->z_fuid_idx, &zfsvfs->z_fuid_domain); in zfs_fuid_init()
189 (void) zap_lookup(zfsvfs->z_os, MASTER_NODE_OBJ, in zfs_fuid_init()
190 ZFS_FUID_TABLES, 8, 1, &zfsvfs->z_fuid_obj); in zfs_fuid_init()
191 if (zfsvfs->z_fuid_obj != 0) { in zfs_fuid_init()
192 zfsvfs->z_fuid_size = zfs_fuid_table_load(zfsvfs->z_os, in zfs_fuid_init()
193 zfsvfs->z_fuid_obj, &zfsvfs->z_fuid_idx, in zfs_fuid_init()
[all …]
H A Dzfs_sa.c123 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_sa_get_scanstamp() local
129 if (sa_lookup(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), in zfs_sa_get_scanstamp()
157 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_sa_set_scanstamp() local
163 VERIFY0(sa_update(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), in zfs_sa_set_scanstamp()
180 VERIFY0(sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zfsvfs), in zfs_sa_set_scanstamp()
188 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_sa_get_xattr() local
197 error = sa_size(zp->z_sa_hdl, SA_ZPL_DXATTR(zfsvfs), &size); in zfs_sa_get_xattr()
208 error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DXATTR(zfsvfs), obj, size); in zfs_sa_get_xattr()
220 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_sa_set_xattr() local
244 zilog = zfsvfs->z_log; in zfs_sa_set_xattr()
[all …]
H A Dzfs_replay.c286 zfsvfs_t *zfsvfs = arg1; in zfs_replay_create_acl() local
327 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0) in zfs_replay_create_acl()
349 error = dnode_try_claim(zfsvfs->z_os, objid, dnodesize >> DNODE_SHIFT); in zfs_replay_create_acl()
359 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, in zfs_replay_create_acl()
375 if (zfsvfs->z_fuid_replay == NULL) { in zfs_replay_create_acl()
378 zfsvfs->z_fuid_replay = in zfs_replay_create_acl()
389 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, in zfs_replay_create_acl()
404 if (zfsvfs->z_fuid_replay == NULL) { in zfs_replay_create_acl()
407 zfsvfs->z_fuid_replay = in zfs_replay_create_acl()
428 if (zfsvfs->z_fuid_replay) in zfs_replay_create_acl()
[all …]
H A Dzfs_vnops.c107 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_fsync() local
109 if (zfsvfs->z_os->os_sync != ZFS_SYNC_DISABLED) { in zfs_fsync()
110 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_fsync()
112 error = zil_commit(zfsvfs->z_log, zp->z_id); in zfs_fsync()
113 zfs_exit(zfsvfs, FTAG); in zfs_fsync()
183 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_holey() local
186 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_holey()
191 zfs_exit(zfsvfs, FTAG); in zfs_holey()
199 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_access() local
202 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_access()
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/zfs/sys/
H A Dzfs_vfsops_os.h37 typedef struct zfsvfs zfsvfs_t;
40 struct zfsvfs { struct
104 #define ZFS_TEARDOWN_INIT(zfsvfs) \ argument
105 rms_init(&(zfsvfs)->z_teardown_lock, "zfs teardown")
107 #define ZFS_TEARDOWN_DESTROY(zfsvfs) \ argument
108 rms_destroy(&(zfsvfs)->z_teardown_lock)
110 #define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \ argument
111 rms_rlock(&(zfsvfs)->z_teardown_lock);
113 #define ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag) \ argument
114 rms_runlock(&(zfsvfs)->z_teardown_lock)
[all …]
H A Dzfs_znode_impl.h48 struct zfsvfs *z_zfsvfs; \
123 zfs_enter(zfsvfs_t *zfsvfs, const char *tag) in zfs_enter() argument
125 ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag); in zfs_enter()
126 if (__predict_false((zfsvfs)->z_unmounted)) { in zfs_enter()
127 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); in zfs_enter()
135 zfs_exit(zfsvfs_t *zfsvfs, const char *tag) in zfs_exit() argument
137 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); in zfs_exit()
144 #define ZFS_OBJ_MUTEX(zfsvfs, obj_num) \ argument
145 (&(zfsvfs)->z_hold_mtx[ZFS_OBJ_HASH(obj_num)])
146 #define ZFS_OBJ_HOLD_ENTER(zfsvfs, obj_num) \ argument
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dzfs_vfsops_os.h37 typedef struct zfsvfs zfsvfs_t;
46 struct zfsvfs *vfs_data;
67 struct zfsvfs { struct
70 struct zfsvfs *z_parent; /* parent fs */ argument
135 #define ZFS_TEARDOWN_INIT(zfsvfs) \ argument
136 rrm_init(&(zfsvfs)->z_teardown_lock, B_FALSE)
138 #define ZFS_TEARDOWN_DESTROY(zfsvfs) \ argument
139 rrm_destroy(&(zfsvfs)->z_teardown_lock)
141 #define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \ argument
142 rrm_enter_read(&(zfsvfs)->z_teardown_lock, tag);
[all …]
H A Dzfs_znode_impl.h82 zfs_enter(zfsvfs_t *zfsvfs, const char *tag) in zfs_enter() argument
84 ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag); in zfs_enter()
85 if (unlikely(zfsvfs->z_unmounted)) { in zfs_enter()
86 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); in zfs_enter()
94 zfs_exit(zfsvfs_t *zfsvfs, const char *tag) in zfs_exit() argument
96 zfs_exit_fs(zfsvfs); in zfs_exit()
97 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); in zfs_exit()
101 zpl_enter(zfsvfs_t *zfsvfs, const char *tag) in zpl_enter() argument
103 return (-zfs_enter(zfsvfs, tag)); in zpl_enter()
107 zpl_exit(zfsvfs_t *zfsvfs, const char *tag) in zpl_exit() argument
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzfs_quota.h19 struct zfsvfs;
25 extern int zfs_userspace_one(struct zfsvfs *, zfs_userquota_prop_t,
27 extern int zfs_userspace_many(struct zfsvfs *, zfs_userquota_prop_t,
29 extern int zfs_set_userquota(struct zfsvfs *, zfs_userquota_prop_t,
32 extern boolean_t zfs_id_overobjquota(struct zfsvfs *, uint64_t, uint64_t);
33 extern boolean_t zfs_id_overblockquota(struct zfsvfs *, uint64_t, uint64_t);
34 extern boolean_t zfs_id_overquota(struct zfsvfs *, uint64_t, uint64_t);

12