diff options
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r-- | fs/xfs/xfs_inode.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/xfs/xfs_inode.h b/fs/xfs/xfs_inode.h index b6dd23d9b3d6..6f88ac3b10ae 100644 --- a/fs/xfs/xfs_inode.h +++ b/fs/xfs/xfs_inode.h | |||
@@ -257,7 +257,7 @@ typedef struct xfs_inode { | |||
257 | struct xfs_inode *i_mprev; /* ptr to prev inode */ | 257 | struct xfs_inode *i_mprev; /* ptr to prev inode */ |
258 | struct xfs_mount *i_mount; /* fs mount struct ptr */ | 258 | struct xfs_mount *i_mount; /* fs mount struct ptr */ |
259 | struct list_head i_reclaim; /* reclaim list */ | 259 | struct list_head i_reclaim; /* reclaim list */ |
260 | struct bhv_desc i_bhv_desc; /* inode behavior descriptor*/ | 260 | struct bhv_vnode *i_vnode; /* vnode backpointer */ |
261 | struct xfs_dquot *i_udquot; /* user dquot */ | 261 | struct xfs_dquot *i_udquot; /* user dquot */ |
262 | struct xfs_dquot *i_gdquot; /* group dquot */ | 262 | struct xfs_dquot *i_gdquot; /* group dquot */ |
263 | 263 | ||
@@ -465,12 +465,8 @@ xfs_iflags_test(xfs_inode_t *ip, unsigned short flags) | |||
465 | #define XFS_ITRUNC_DEFINITE 0x1 | 465 | #define XFS_ITRUNC_DEFINITE 0x1 |
466 | #define XFS_ITRUNC_MAYBE 0x2 | 466 | #define XFS_ITRUNC_MAYBE 0x2 |
467 | 467 | ||
468 | #define XFS_ITOV(ip) BHV_TO_VNODE(XFS_ITOBHV(ip)) | 468 | #define XFS_ITOV(ip) ((ip)->i_vnode) |
469 | #define XFS_ITOV_NULL(ip) BHV_TO_VNODE_NULL(XFS_ITOBHV(ip)) | 469 | #define XFS_ITOV_NULL(ip) ((ip)->i_vnode) |
470 | #define XFS_ITOBHV(ip) ((struct bhv_desc *)(&((ip)->i_bhv_desc))) | ||
471 | #define XFS_BHVTOI(bhvp) ((xfs_inode_t *)((char *)(bhvp) - \ | ||
472 | (char *)&(((xfs_inode_t *)0)->i_bhv_desc))) | ||
473 | #define BHV_IS_XFS(bdp) (BHV_OPS(bdp) == &xfs_vnodeops) | ||
474 | 470 | ||
475 | /* | 471 | /* |
476 | * For multiple groups support: if S_ISGID bit is set in the parent | 472 | * For multiple groups support: if S_ISGID bit is set in the parent |
@@ -557,8 +553,6 @@ void xfs_ichgtime(xfs_inode_t *, int); | |||
557 | xfs_fsize_t xfs_file_last_byte(xfs_inode_t *); | 553 | xfs_fsize_t xfs_file_last_byte(xfs_inode_t *); |
558 | void xfs_lock_inodes(xfs_inode_t **, int, int, uint); | 554 | void xfs_lock_inodes(xfs_inode_t **, int, int, uint); |
559 | 555 | ||
560 | xfs_inode_t *xfs_vtoi(struct bhv_vnode *vp); | ||
561 | |||
562 | void xfs_synchronize_atime(xfs_inode_t *); | 556 | void xfs_synchronize_atime(xfs_inode_t *); |
563 | 557 | ||
564 | xfs_bmbt_rec_host_t *xfs_iext_get_ext(xfs_ifork_t *, xfs_extnum_t); | 558 | xfs_bmbt_rec_host_t *xfs_iext_get_ext(xfs_ifork_t *, xfs_extnum_t); |