Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/os/freebsd/zfs/sys/zfs_znode_impl.h
Show All 34 Lines | |||||
#include <sys/rrwlock.h> | #include <sys/rrwlock.h> | ||||
#include <sys/zfs_sa.h> | #include <sys/zfs_sa.h> | ||||
#include <sys/zfs_stat.h> | #include <sys/zfs_stat.h> | ||||
#include <sys/zfs_rlock.h> | #include <sys/zfs_rlock.h> | ||||
#include <sys/zfs_acl.h> | #include <sys/zfs_acl.h> | ||||
#include <sys/zil.h> | #include <sys/zil.h> | ||||
#include <sys/zfs_project.h> | #include <sys/zfs_project.h> | ||||
#include <vm/vm_object.h> | #include <vm/vm_object.h> | ||||
#include <sys/uio.h> | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" { | extern "C" { | ||||
#endif | #endif | ||||
/* | /* | ||||
* Directory entry locks control access to directory entries. | * Directory entry locks control access to directory entries. | ||||
* They are used to protect creates, deletes, and renames. | * They are used to protect creates, deletes, and renames. | ||||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
#define ZTOUID(zp) ((zp)->z_uid) | #define ZTOUID(zp) ((zp)->z_uid) | ||||
#define ZTONLNK(zp) ((zp)->z_links) | #define ZTONLNK(zp) ((zp)->z_links) | ||||
#define Z_ISBLK(type) ((type) == VBLK) | #define Z_ISBLK(type) ((type) == VBLK) | ||||
#define Z_ISCHR(type) ((type) == VCHR) | #define Z_ISCHR(type) ((type) == VCHR) | ||||
#define Z_ISLNK(type) ((type) == VLNK) | #define Z_ISLNK(type) ((type) == VLNK) | ||||
#define Z_ISDIR(type) ((type) == VDIR) | #define Z_ISDIR(type) ((type) == VDIR) | ||||
#define zn_has_cached_data(zp) vn_has_cached_data(ZTOV(zp)) | #define zn_has_cached_data(zp) vn_has_cached_data(ZTOV(zp)) | ||||
#define zn_rlimit_fsize(zp, uio, td) vn_rlimit_fsize(ZTOV(zp), (uio), (td)) | #define zn_rlimit_fsize(zp, uio) \ | ||||
vn_rlimit_fsize(ZTOV(zp), GET_UIO_STRUCT(uio), zfs_uio_td(uio)) | |||||
/* 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) \ | ||||
{ \ | { \ | ||||
ZFS_TEARDOWN_ENTER_READ((zfsvfs), FTAG); \ | ZFS_TEARDOWN_ENTER_READ((zfsvfs), FTAG); \ | ||||
if (__predict_false((zfsvfs)->z_unmounted)) { \ | if (__predict_false((zfsvfs)->z_unmounted)) { \ | ||||
ZFS_TEARDOWN_EXIT_READ(zfsvfs, FTAG); \ | ZFS_TEARDOWN_EXIT_READ(zfsvfs, FTAG); \ | ||||
return (EIO); \ | return (EIO); \ | ||||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | extern void zfs_tstamp_update_setup_ext(struct znode *, | ||||
uint_t, uint64_t [2], uint64_t [2], boolean_t have_tx); | uint_t, uint64_t [2], uint64_t [2], boolean_t have_tx); | ||||
extern void zfs_znode_free(struct znode *); | extern void zfs_znode_free(struct znode *); | ||||
extern zil_replay_func_t *zfs_replay_vector[TX_MAX_TYPE]; | extern zil_replay_func_t *zfs_replay_vector[TX_MAX_TYPE]; | ||||
extern int zfsfstype; | extern int zfsfstype; | ||||
extern int zfs_znode_parent_and_name(struct znode *zp, struct znode **dzpp, | extern int zfs_znode_parent_and_name(struct znode *zp, struct znode **dzpp, | ||||
char *buf); | char *buf); | ||||
extern void zfs_inode_update(struct znode *); | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif /* _FREEBSD_SYS_FS_ZFS_ZNODE_H */ | #endif /* _FREEBSD_SYS_FS_ZFS_ZNODE_H */ |