aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2008-08-13 02:11:26 -0400
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-08-13 02:11:26 -0400
commita19d033cd2cc66120f01b370ec081d67b59b7924 (patch)
tree8301461c9fb6a662abaccbfc277136a82752f8d1 /fs
parent39dab9d7daf5f664a3569378107a2cb284c8a594 (diff)
[XFS] Remove vn_from_inode()
bhv_vnode_t is just a typedef for struct inode, so there's no need for a helper to convert between the two. SGI-PV: 981498 SGI-Modid: xfs-linux-melb:xfs-kern:31760a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c2
-rw-r--r--fs/xfs/linux-2.6/xfs_vnode.h7
2 files changed, 2 insertions, 7 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 27758409fc85..184ef14856af 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -994,7 +994,7 @@ STATIC void
994xfs_fs_destroy_inode( 994xfs_fs_destroy_inode(
995 struct inode *inode) 995 struct inode *inode)
996{ 996{
997 kmem_zone_free(xfs_vnode_zone, vn_from_inode(inode)); 997 kmem_zone_free(xfs_vnode_zone, inode);
998} 998}
999 999
1000STATIC void 1000STATIC void
diff --git a/fs/xfs/linux-2.6/xfs_vnode.h b/fs/xfs/linux-2.6/xfs_vnode.h
index c3afecf8c5bf..536515cad90e 100644
--- a/fs/xfs/linux-2.6/xfs_vnode.h
+++ b/fs/xfs/linux-2.6/xfs_vnode.h
@@ -27,10 +27,6 @@ typedef struct inode bhv_vnode_t;
27/* 27/*
28 * Vnode to Linux inode mapping. 28 * Vnode to Linux inode mapping.
29 */ 29 */
30static inline bhv_vnode_t *vn_from_inode(struct inode *inode)
31{
32 return inode;
33}
34static inline struct inode *vn_to_inode(bhv_vnode_t *vnode) 30static inline struct inode *vn_to_inode(bhv_vnode_t *vnode)
35{ 31{
36 return vnode; 32 return vnode;
@@ -100,8 +96,7 @@ extern bhv_vnode_t *vn_hold(bhv_vnode_t *);
100 96
101static inline bhv_vnode_t *vn_grab(bhv_vnode_t *vp) 97static inline bhv_vnode_t *vn_grab(bhv_vnode_t *vp)
102{ 98{
103 struct inode *inode = igrab(vn_to_inode(vp)); 99 return igrab(vn_to_inode(vp));
104 return inode ? vn_from_inode(inode) : NULL;
105} 100}
106 101
107/* 102/*