Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_vfsops.c258 zfs_is_readonly(zfsvfs_t *zfsvfs) in zfs_is_readonly() argument
260 return (!!(zfsvfs->z_sb->s_flags & SB_RDONLY)); in zfs_is_readonly()
267 zfsvfs_t *zfsvfs = sb->s_fs_info; in zfs_sync() local
268 ASSERT3P(zfsvfs, !=, NULL); in zfs_sync()
277 int err = zfs_enter(zfsvfs, FTAG); in zfs_sync()
286 err = zil_commit_flags(zfsvfs->z_log, 0, ZIL_COMMIT_NOW); in zfs_sync()
287 zfs_exit(zfsvfs, FTAG); in zfs_sync()
295 zfsvfs_t *zfsvfs = arg; in atime_changed_cb() local
296 struct super_block *sb = zfsvfs->z_sb; in atime_changed_cb()
321 zfsvfs_t *zfsvfs = arg; in xattr_changed_cb() local
[all …]
H A Dzfs_dir.c64 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, in zfs_match_find() argument
71 if (zfsvfs->z_norm) { in zfs_match_find()
84 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, in zfs_match_find()
87 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); in zfs_match_find()
100 if (zfsvfs->z_norm && !error && deflags) in zfs_match_find()
147 zfsvfs_t *zfsvfs = ZTOZSB(dzp); in zfs_dirent_lock() local
193 if (zfsvfs->z_norm != 0) { in zfs_dirent_lock()
201 if ((zfsvfs->z_case == ZFS_CASE_INSENSITIVE && in zfs_dirent_lock()
203 (zfsvfs->z_case == ZFS_CASE_MIXED && !(flag & ZCILOOK))) { in zfs_dirent_lock()
218 update = !zfsvfs->z_norm || in zfs_dirent_lock()
[all …]
H A Dzfs_znode_os.c246 zfs_znode_held(zfsvfs_t *zfsvfs, uint64_t obj) in zfs_znode_held() argument
249 int i = ZFS_OBJ_HASH(zfsvfs, obj); in zfs_znode_held()
254 mutex_enter(&zfsvfs->z_hold_locks[i]); in zfs_znode_held()
255 zh = avl_find(&zfsvfs->z_hold_trees[i], &search, NULL); in zfs_znode_held()
257 mutex_exit(&zfsvfs->z_hold_locks[i]); in zfs_znode_held()
263 zfs_znode_hold_enter(zfsvfs_t *zfsvfs, uint64_t obj) in zfs_znode_hold_enter() argument
266 int i = ZFS_OBJ_HASH(zfsvfs, obj); in zfs_znode_hold_enter()
272 mutex_enter(&zfsvfs->z_hold_locks[i]); in zfs_znode_hold_enter()
273 zh = avl_find(&zfsvfs->z_hold_trees[i], &search, NULL); in zfs_znode_hold_enter()
277 avl_add(&zfsvfs->z_hold_trees[i], zh); in zfs_znode_hold_enter()
[all …]
H A Dzfs_vnops_os.c187 zfsvfs_t *zfsvfs = ITOZSB(ip); in zfs_open() local
190 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_open()
196 zfs_exit(zfsvfs, FTAG); in zfs_open()
207 zil_async_to_sync(zfsvfs->z_log, zp->z_id); in zfs_open()
210 zfs_exit(zfsvfs, FTAG); in zfs_open()
219 zfsvfs_t *zfsvfs = ITOZSB(ip); in zfs_close() local
222 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_close()
229 zfs_exit(zfsvfs, FTAG); in zfs_close()
446 zfsvfs_t *zfsvfs = ZTOZSB(zdp); in zfs_lookup() local
477 if ((error = zfs_enter_verify_zp(zfsvfs, zdp, FTAG)) != 0) in zfs_lookup()
[all …]
H A Dzfs_ctldir.c482 zfsctl_inode_alloc(zfsvfs_t *zfsvfs, uint64_t id, in zfsctl_inode_alloc() argument
490 ip = new_inode(zfsvfs->z_sb); in zfsctl_inode_alloc()
535 mutex_enter(&zfsvfs->z_znodes_lock); in zfsctl_inode_alloc()
536 list_insert_tail(&zfsvfs->z_all_znodes, zp); in zfsctl_inode_alloc()
538 mutex_exit(&zfsvfs->z_znodes_lock); in zfsctl_inode_alloc()
549 zfsctl_inode_lookup(zfsvfs_t *zfsvfs, uint64_t id, in zfsctl_inode_lookup() argument
558 ip = ilookup(zfsvfs->z_sb, (unsigned long)id); in zfsctl_inode_lookup()
563 pool = dmu_objset_pool(zfsvfs->z_os); in zfsctl_inode_lookup()
574 ip = zfsctl_inode_alloc(zfsvfs, id, fops, ops, creation); in zfsctl_inode_lookup()
591 zfsctl_create(zfsvfs_t *zfsvfs) in zfsctl_create() argument
[all …]
H A Dzpl_super.c171 zfsvfs_t *zfsvfs = sb->s_fs_info; in zpl_sync_fs() local
172 ASSERT3P(zfsvfs, !=, NULL); in zpl_sync_fs()
173 if (zfs_enter(zfsvfs, FTAG) == 0) { in zpl_sync_fs()
174 txg_wait_synced(dmu_objset_pool(zfsvfs->z_os), 0); in zpl_sync_fs()
175 zfs_exit(zfsvfs, FTAG); in zpl_sync_fs()
241 __zpl_show_devname(struct seq_file *seq, zfsvfs_t *zfsvfs) in __zpl_show_devname() argument
244 if ((error = zpl_enter(zfsvfs, FTAG)) != 0) in __zpl_show_devname()
248 dmu_objset_name(zfsvfs->z_os, fsname); in __zpl_show_devname()
265 zpl_exit(zfsvfs, FTAG); in __zpl_show_devname()
277 __zpl_show_options(struct seq_file *seq, zfsvfs_t *zfsvfs) in __zpl_show_options() argument
[all …]
H A Dzpl_ctldir.c58 zfsvfs_t *zfsvfs = ITOZSB(file_inode(filp)); in zpl_root_iterate() local
61 if (zfsvfs->z_show_ctldir == ZFS_SNAPDIR_DISABLED) { in zpl_root_iterate()
65 if ((error = zpl_enter(zfsvfs, FTAG)) != 0) in zpl_root_iterate()
87 zpl_exit(zfsvfs, FTAG); in zpl_root_iterate()
249 zfsvfs_t *zfsvfs = ITOZSB(file_inode(filp)); in zpl_snapdir_iterate() local
256 if ((error = zpl_enter(zfsvfs, FTAG)) != 0) in zpl_snapdir_iterate()
266 dsl_pool_config_enter(dmu_objset_pool(zfsvfs->z_os), FTAG); in zpl_snapdir_iterate()
267 error = -dmu_snapshot_list_next(zfsvfs->z_os, MAXNAMELEN, in zpl_snapdir_iterate()
269 dsl_pool_config_exit(dmu_objset_pool(zfsvfs->z_os), FTAG); in zpl_snapdir_iterate()
281 zpl_exit(zfsvfs, FTAG); in zpl_snapdir_iterate()
[all …]
H A Dzfs_acl.c373 zfsvfs_t *zfsvfs = ZTOZSB(zp); 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()
651 zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, umode_t obj_mode, zfs_acl_t *aclp, in zfs_copy_ace_2_fuid() argument
669 aceptr->z_fuid = zfs_fuid_create(zfsvfs, acep->a_who, in zfs_copy_ace_2_fuid()
713 zfs_copy_fuid_2_ace(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, cred_t *cr, in zfs_copy_fuid_2_ace() argument
756 acep->a_who = zfs_fuid_map_id(zfsvfs, who, in zfs_copy_fuid_2_ace()
1358 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_aclset_common() local
1373 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.c240 zfs_getquota(zfsvfs_t *zfsvfs, uid_t id, int isgroup, struct dqblk64 *dqp) in zfs_getquota() argument
249 quotaobj = isgroup ? zfsvfs->z_groupquota_obj : zfsvfs->z_userquota_obj; in zfs_getquota()
250 defaultquota = isgroup ? zfsvfs->z_defaultgroupquota : in zfs_getquota()
251 zfsvfs->z_defaultuserquota; in zfs_getquota()
253 if (zfsvfs->z_replay) in zfs_getquota()
262 error = zap_lookup(zfsvfs->z_os, quotaobj, buf, sizeof (quota), in zfs_getquota()
273 error = zap_lookup(zfsvfs->z_os, usedobj, buf, sizeof (used), 1, &used); in zfs_getquota()
297 zfsvfs_t *zfsvfs = vfsp->vfs_data; in zfs_quotactl() local
308 if ((error = zfs_enter(zfsvfs, FTAG)) != 0) in zfs_quotactl()
395 error = zfs_set_userquota(zfsvfs, quota_type, in zfs_quotactl()
[all …]
H A Dzfs_dir.c70 zfs_match_find(zfsvfs_t *zfsvfs, znode_t *dzp, const char *name, in zfs_match_find() argument
75 if (zfsvfs->z_norm) { in zfs_match_find()
81 error = zap_lookup_norm(zfsvfs->z_os, dzp->z_id, name, 8, 1, in zfs_match_find()
84 error = zap_lookup(zfsvfs->z_os, dzp->z_id, name, 8, 1, zoid); in zfs_match_find()
114 zfsvfs_t *zfsvfs = dzp->z_zfsvfs; in zfs_dirent_lookup() local
120 if (zfsvfs->z_replay == B_FALSE) in zfs_dirent_lookup()
148 if (zfsvfs->z_norm != 0) { in zfs_dirent_lookup()
156 if (zfsvfs->z_case == ZFS_CASE_MIXED) { in zfs_dirent_lookup()
176 error = sa_lookup(dzp->z_sa_hdl, SA_ZPL_XATTR(zfsvfs), &zoid, in zfs_dirent_lookup()
181 error = zfs_match_find(zfsvfs, dzp, name, mt, &zoid); in zfs_dirent_lookup()
[all …]
H A Dzfs_znode_os.c271 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()
298 error = zap_add(zfsvfs->z_os, MASTER_NODE_OBJ, in zfs_create_share_dir()
300 zfsvfs->z_shares_dir = sharezp->z_id; in zfs_create_share_dir()
350 zfs_znode_sa_init(zfsvfs_t *zfsvfs, znode_t *zp, in zfs_znode_sa_init() argument
353 ASSERT(!POINTER_IS_VALID(zp->z_zfsvfs) || (zfsvfs == zp->z_zfsvfs)); in zfs_znode_sa_init()
354 ASSERT(MUTEX_HELD(ZFS_OBJ_MUTEX(zfsvfs, zp->z_id))); in zfs_znode_sa_init()
359 VERIFY0(sa_handle_get_from_db(zfsvfs->z_os, db, zp, in zfs_znode_sa_init()
372 if (zp->z_id == zfsvfs->z_root && zfsvfs->z_parent == zfsvfs) in zfs_znode_sa_init()
[all …]
H A Dzfs_vnops_os.c228 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_open() local
231 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_open()
236 zfs_exit(zfsvfs, FTAG); in zfs_open()
247 zil_async_to_sync(zfsvfs->z_log, zp->z_id); in zfs_open()
250 zfs_exit(zfsvfs, FTAG); in zfs_open()
259 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_close() local
262 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_close()
269 zfs_exit(zfsvfs, FTAG); in zfs_close()
677 zfsvfs_t *zfsvfs __unused = zdp->z_zfsvfs; in zfs_lookup_lock()
681 if (zfsvfs->z_replay == B_FALSE) in zfs_lookup_lock()
[all …]
H A Dzfs_ctldir.c353 zfsctl_create(zfsvfs_t *zfsvfs) in zfsctl_create() argument
360 ASSERT0P(zfsvfs->z_ctldir); in zfsctl_create()
368 VERIFY0(VFS_ROOT(zfsvfs->z_vfs, LK_EXCLUSIVE, &rvp)); in zfsctl_create()
369 VERIFY0(sa_lookup(VTOZ(rvp)->z_sa_hdl, SA_ZPL_CRTIME(zfsvfs), in zfsctl_create()
374 zfsvfs->z_ctldir = dot_zfs; in zfsctl_create()
383 zfsctl_destroy(zfsvfs_t *zfsvfs) in zfsctl_destroy() argument
385 sfs_destroy_node(zfsvfs->z_ctldir->snapdir); in zfsctl_destroy()
386 sfs_destroy_node((sfs_node_t *)zfsvfs->z_ctldir); in zfsctl_destroy()
387 zfsvfs->z_ctldir = NULL; in zfsctl_destroy()
439 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.c374 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_acl_znode_info() local
381 if ((error = sa_size(zp->z_sa_hdl, SA_ZPL_DACL_ACES(zfsvfs), in zfs_acl_znode_info()
385 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DACL_COUNT(zfsvfs), in zfs_acl_znode_info()
390 if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zfsvfs), in zfs_acl_znode_info()
653 zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, vtype_t obj_type, zfs_acl_t *aclp, in zfs_copy_ace_2_fuid() argument
671 aceptr->z_fuid = zfs_fuid_create(zfsvfs, acep->a_who, in zfs_copy_ace_2_fuid()
715 zfs_copy_fuid_2_ace(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, cred_t *cr, in zfs_copy_fuid_2_ace() argument
758 acep->a_who = zfs_fuid_map_id(zfsvfs, who, in zfs_copy_fuid_2_ace()
1169 zfsvfs_t *zfsvfs = zp->z_zfsvfs; in zfs_aclset_common() local
1188 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 Dzfs_vfsops_os.h47 typedef struct zfsvfs zfsvfs_t;
50 struct zfsvfs { struct
112 #define ZFS_TEARDOWN_INIT(zfsvfs) \ argument
113 rms_init(&(zfsvfs)->z_teardown_lock, "zfs teardown")
115 #define ZFS_TEARDOWN_DESTROY(zfsvfs) \ argument
116 rms_destroy(&(zfsvfs)->z_teardown_lock)
118 #define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \ argument
119 rms_rlock(&(zfsvfs)->z_teardown_lock);
121 #define ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag) \ argument
122 rms_runlock(&(zfsvfs)->z_teardown_lock)
[all …]
H A Dzfs_znode_impl.h58 struct zfsvfs *z_zfsvfs; \
133 zfs_enter(zfsvfs_t *zfsvfs, const char *tag) in zfs_enter() argument
135 ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag); in zfs_enter()
136 if (__predict_false((zfsvfs)->z_unmounted)) { in zfs_enter()
137 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); in zfs_enter()
145 zfs_exit(zfsvfs_t *zfsvfs, const char *tag) in zfs_exit() argument
147 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); in zfs_exit()
154 #define ZFS_OBJ_MUTEX(zfsvfs, obj_num) \ argument
155 (&(zfsvfs)->z_hold_mtx[ZFS_OBJ_HASH(obj_num)])
156 #define ZFS_OBJ_HOLD_ENTER(zfsvfs, obj_num) \ argument
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzfs_quota.c117 fuidstr_to_sid(zfsvfs_t *zfsvfs, const char *fuidstr, in fuidstr_to_sid() argument
125 domain = zfs_fuid_find_by_idx(zfsvfs, FUID_INDEX(fuid)); in fuidstr_to_sid()
134 zfs_userquota_prop_to_obj(zfsvfs_t *zfsvfs, zfs_userquota_prop_t type) in zfs_userquota_prop_to_obj() argument
147 return (zfsvfs->z_userquota_obj); in zfs_userquota_prop_to_obj()
149 return (zfsvfs->z_groupquota_obj); in zfs_userquota_prop_to_obj()
151 return (zfsvfs->z_userobjquota_obj); in zfs_userquota_prop_to_obj()
153 return (zfsvfs->z_groupobjquota_obj); in zfs_userquota_prop_to_obj()
155 return (zfsvfs->z_projectquota_obj); in zfs_userquota_prop_to_obj()
157 return (zfsvfs->z_projectobjquota_obj); in zfs_userquota_prop_to_obj()
164 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.c191 zfs_fuid_init(zfsvfs_t *zfsvfs) in zfs_fuid_init() argument
193 rw_enter(&zfsvfs->z_fuid_lock, RW_WRITER); in zfs_fuid_init()
195 if (zfsvfs->z_fuid_loaded) { in zfs_fuid_init()
196 rw_exit(&zfsvfs->z_fuid_lock); in zfs_fuid_init()
200 zfs_fuid_avl_tree_create(&zfsvfs->z_fuid_idx, &zfsvfs->z_fuid_domain); in zfs_fuid_init()
202 (void) zap_lookup(zfsvfs->z_os, MASTER_NODE_OBJ, in zfs_fuid_init()
203 ZFS_FUID_TABLES, 8, 1, &zfsvfs->z_fuid_obj); in zfs_fuid_init()
204 if (zfsvfs->z_fuid_obj != 0) { in zfs_fuid_init()
205 zfsvfs->z_fuid_size = zfs_fuid_table_load(zfsvfs->z_os, in zfs_fuid_init()
206 zfsvfs->z_fuid_obj, &zfsvfs->z_fuid_idx, in zfs_fuid_init()
[all …]
H A Dzfs_sa.c132 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_sa_get_scanstamp() local
138 if (sa_lookup(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), in zfs_sa_get_scanstamp()
166 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_sa_set_scanstamp() local
172 VERIFY0(sa_update(zp->z_sa_hdl, SA_ZPL_SCANSTAMP(zfsvfs), in zfs_sa_set_scanstamp()
189 VERIFY0(sa_update(zp->z_sa_hdl, SA_ZPL_FLAGS(zfsvfs), in zfs_sa_set_scanstamp()
197 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_sa_get_xattr() local
206 error = sa_size(zp->z_sa_hdl, SA_ZPL_DXATTR(zfsvfs), &size); in zfs_sa_get_xattr()
217 error = sa_lookup(zp->z_sa_hdl, SA_ZPL_DXATTR(zfsvfs), obj, size); in zfs_sa_get_xattr()
229 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_sa_set_xattr() local
253 zilog = zfsvfs->z_log; in zfs_sa_set_xattr()
[all …]
H A Dzfs_vnops.c115 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_fsync() local
117 if (zfsvfs->z_os->os_sync != ZFS_SYNC_DISABLED) { in zfs_fsync()
118 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_fsync()
120 error = zil_commit(zfsvfs->z_log, zp->z_id); in zfs_fsync()
121 zfs_exit(zfsvfs, FTAG); in zfs_fsync()
191 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_holey() local
194 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_holey()
199 zfs_exit(zfsvfs, FTAG); in zfs_holey()
207 zfsvfs_t *zfsvfs = ZTOZSB(zp); in zfs_access() local
210 if ((error = zfs_enter_verify_zp(zfsvfs, zp, FTAG)) != 0) in zfs_access()
[all …]
H A Dzfs_replay.c295 zfsvfs_t *zfsvfs = arg1; in zfs_replay_create_acl() local
336 if ((error = zfs_zget(zfsvfs, lr->lr_doid, &dzp)) != 0) in zfs_replay_create_acl()
358 error = dnode_try_claim(zfsvfs->z_os, objid, dnodesize >> DNODE_SHIFT); in zfs_replay_create_acl()
368 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, in zfs_replay_create_acl()
384 if (zfsvfs->z_fuid_replay == NULL) { in zfs_replay_create_acl()
387 zfsvfs->z_fuid_replay = in zfs_replay_create_acl()
404 zfsvfs->z_fuid_replay = zfs_replay_fuids(fuidstart, in zfs_replay_create_acl()
419 if (zfsvfs->z_fuid_replay == NULL) { in zfs_replay_create_acl()
422 zfsvfs->z_fuid_replay = in zfs_replay_create_acl()
448 if (zfsvfs->z_fuid_replay) in zfs_replay_create_acl()
[all …]
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/
H A Dzfs_vfsops_os.h46 typedef struct zfsvfs zfsvfs_t;
55 struct zfsvfs *vfs_data;
81 struct zfsvfs { struct
84 struct zfsvfs *z_parent; /* parent fs */ argument
148 #define ZFS_TEARDOWN_INIT(zfsvfs) \ argument
149 rrm_init(&(zfsvfs)->z_teardown_lock, B_FALSE)
151 #define ZFS_TEARDOWN_DESTROY(zfsvfs) \ argument
152 rrm_destroy(&(zfsvfs)->z_teardown_lock)
154 #define ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag) \ argument
155 rrm_enter_read(&(zfsvfs)->z_teardown_lock, tag);
[all …]
H A Dzfs_znode_impl.h92 zfs_enter(zfsvfs_t *zfsvfs, const char *tag) in zfs_enter() argument
94 ZFS_TEARDOWN_ENTER_READ(zfsvfs, tag); in zfs_enter()
95 if (unlikely(zfsvfs->z_unmounted)) { in zfs_enter()
96 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); in zfs_enter()
104 zfs_exit(zfsvfs_t *zfsvfs, const char *tag) in zfs_exit() argument
106 zfs_exit_fs(zfsvfs); in zfs_exit()
107 ZFS_TEARDOWN_EXIT_READ(zfsvfs, tag); in zfs_exit()
111 zpl_enter(zfsvfs_t *zfsvfs, const char *tag) in zpl_enter() argument
113 return (-zfs_enter(zfsvfs, tag)); in zpl_enter()
117 zpl_exit(zfsvfs_t *zfsvfs, const char *tag) in zpl_exit() argument
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzfs_quota.h29 struct zfsvfs;
35 extern int zfs_userspace_one(struct zfsvfs *, zfs_userquota_prop_t,
37 extern int zfs_userspace_many(struct zfsvfs *, zfs_userquota_prop_t,
39 extern int zfs_set_userquota(struct zfsvfs *, zfs_userquota_prop_t,
42 extern boolean_t zfs_id_overobjquota(struct zfsvfs *, uint64_t, uint64_t);
43 extern boolean_t zfs_id_overblockquota(struct zfsvfs *, uint64_t, uint64_t);
44 extern boolean_t zfs_id_overquota(struct zfsvfs *, uint64_t, uint64_t);

12