Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/os/linux/zfs/sys/zfs_znode_impl.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
#define ZTONLNK(zp) (ZTOI(zp)->i_nlink) | #define ZTONLNK(zp) (ZTOI(zp)->i_nlink) | ||||
#define Z_ISBLK(type) S_ISBLK(type) | #define Z_ISBLK(type) S_ISBLK(type) | ||||
#define Z_ISCHR(type) S_ISCHR(type) | #define Z_ISCHR(type) S_ISCHR(type) | ||||
#define Z_ISLNK(type) S_ISLNK(type) | #define Z_ISLNK(type) S_ISLNK(type) | ||||
#define Z_ISDEV(type) (S_ISCHR(type) || S_ISBLK(type) || S_ISFIFO(type)) | #define Z_ISDEV(type) (S_ISCHR(type) || S_ISBLK(type) || S_ISFIFO(type)) | ||||
#define Z_ISDIR(type) S_ISDIR(type) | #define Z_ISDIR(type) S_ISDIR(type) | ||||
#define zn_has_cached_data(zp) ((zp)->z_is_mapped) | #define zn_has_cached_data(zp) ((zp)->z_is_mapped) | ||||
#define zn_rlimit_fsize(zp, uio, td) (0) | #define zn_rlimit_fsize(zp, uio) (0) | ||||
#define zhold(zp) igrab(ZTOI((zp))) | #define zhold(zp) igrab(ZTOI((zp))) | ||||
#define zrele(zp) iput(ZTOI((zp))) | #define zrele(zp) iput(ZTOI((zp))) | ||||
/* Called on entry to each ZFS inode and vfs operation. */ | /* Called on entry to each ZFS inode and vfs operation. */ | ||||
#define ZFS_ENTER_ERROR(zfsvfs, error) \ | #define ZFS_ENTER_ERROR(zfsvfs, error) \ | ||||
do { \ | do { \ | ||||
ZFS_TEARDOWN_ENTER_READ(zfsvfs, FTAG); \ | ZFS_TEARDOWN_ENTER_READ(zfsvfs, FTAG); \ | ||||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
#define ZFS_ACCESSTIME_STAMP(zfsvfs, zp) | #define ZFS_ACCESSTIME_STAMP(zfsvfs, zp) | ||||
struct znode; | struct znode; | ||||
extern int zfs_sync(struct super_block *, int, cred_t *); | extern int zfs_sync(struct super_block *, int, cred_t *); | ||||
extern int zfs_inode_alloc(struct super_block *, struct inode **ip); | extern int zfs_inode_alloc(struct super_block *, struct inode **ip); | ||||
extern void zfs_inode_destroy(struct inode *); | extern void zfs_inode_destroy(struct inode *); | ||||
extern void zfs_inode_update(struct znode *); | |||||
extern void zfs_mark_inode_dirty(struct inode *); | extern void zfs_mark_inode_dirty(struct inode *); | ||||
extern boolean_t zfs_relatime_need_update(const struct inode *); | extern boolean_t zfs_relatime_need_update(const struct inode *); | ||||
#if defined(HAVE_UIO_RW) | #if defined(HAVE_UIO_RW) | ||||
extern caddr_t zfs_map_page(page_t *, enum seg_rw); | extern caddr_t zfs_map_page(page_t *, enum seg_rw); | ||||
extern void zfs_unmap_page(page_t *, caddr_t); | extern void zfs_unmap_page(page_t *, caddr_t); | ||||
#endif /* HAVE_UIO_RW */ | #endif /* HAVE_UIO_RW */ | ||||
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; | ||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif /* _SYS_ZFS_ZNODE_IMPL_H */ | #endif /* _SYS_ZFS_ZNODE_IMPL_H */ |