aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2007-08-28 20:58:01 -0400
committerTim Shimmin <tes@chook.melbourne.sgi.com>2007-10-15 20:40:00 -0400
commit739bfb2a7dfa369324f74aad1d020d6e0775e4f0 (patch)
tree8fbe3e739e0d550137e3f148a36ce5c083f5ef2c /fs/xfs/xfs_inode.h
parent993386c19afa53fa54d00c7721e56ba820b3400d (diff)
[XFS] call common xfs vnode-level helpers directly and remove vnode operations
SGI-PV: 969608 SGI-Modid: xfs-linux-melb:xfs-kern:29493a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_inode.h')
-rw-r--r--fs/xfs/xfs_inode.h12
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);
557xfs_fsize_t xfs_file_last_byte(xfs_inode_t *); 553xfs_fsize_t xfs_file_last_byte(xfs_inode_t *);
558void xfs_lock_inodes(xfs_inode_t **, int, int, uint); 554void xfs_lock_inodes(xfs_inode_t **, int, int, uint);
559 555
560xfs_inode_t *xfs_vtoi(struct bhv_vnode *vp);
561
562void xfs_synchronize_atime(xfs_inode_t *); 556void xfs_synchronize_atime(xfs_inode_t *);
563 557
564xfs_bmbt_rec_host_t *xfs_iext_get_ext(xfs_ifork_t *, xfs_extnum_t); 558xfs_bmbt_rec_host_t *xfs_iext_get_ext(xfs_ifork_t *, xfs_extnum_t);