Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_znode.h
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | VTOZ(vnode_t *vp) | ||||
ASSERT(zp != NULL && zp->z_vnode == vp); | ASSERT(zp != NULL && zp->z_vnode == vp); | ||||
return (zp); | return (zp); | ||||
} | } | ||||
#else | #else | ||||
#define ZTOV(ZP) ((ZP)->z_vnode) | #define ZTOV(ZP) ((ZP)->z_vnode) | ||||
#define VTOZ(VP) ((znode_t *)(VP)->v_data) | #define VTOZ(VP) ((znode_t *)(VP)->v_data) | ||||
#endif | #endif | ||||
#define VTOZ_SMR(VP) ((znode_t *)atomic_load_ptr(&(VP)->v_data)) | |||||
/* Called on entry to each ZFS vnode and vfs operation */ | /* Called on entry to each ZFS vnode and vfs operation */ | ||||
#define ZFS_ENTER(zfsvfs) \ | #define ZFS_ENTER(zfsvfs) \ | ||||
{ \ | { \ | ||||
rrm_enter_read(&(zfsvfs)->z_teardown_lock, FTAG); \ | rrm_enter_read(&(zfsvfs)->z_teardown_lock, FTAG); \ | ||||
if ((zfsvfs)->z_unmounted) { \ | if ((zfsvfs)->z_unmounted) { \ | ||||
ZFS_EXIT(zfsvfs); \ | ZFS_EXIT(zfsvfs); \ | ||||
return (EIO); \ | return (EIO); \ | ||||
} \ | } \ | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |