]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[XFS] Remove vn_from_inode()
authorChristoph Hellwig <hch@infradead.org>
Wed, 13 Aug 2008 06:11:26 +0000 (16:11 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Wed, 13 Aug 2008 06:11:26 +0000 (16:11 +1000)
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>
fs/xfs/linux-2.6/xfs_super.c
fs/xfs/linux-2.6/xfs_vnode.h

index 27758409fc85b269c33db6f196cdc45dc0ff804c..184ef14856af1e7aba86bf0f898df7f16c46bfc7 100644 (file)
@@ -994,7 +994,7 @@ STATIC void
 xfs_fs_destroy_inode(
        struct inode            *inode)
 {
-       kmem_zone_free(xfs_vnode_zone, vn_from_inode(inode));
+       kmem_zone_free(xfs_vnode_zone, inode);
 }
 
 STATIC void
index c3afecf8c5bf4a953bb5810749b4dc6461bd772e..536515cad90e3f6cdf01616a8493f7c62ea349d5 100644 (file)
@@ -27,10 +27,6 @@ typedef struct inode bhv_vnode_t;
 /*
  * Vnode to Linux inode mapping.
  */
-static inline bhv_vnode_t *vn_from_inode(struct inode *inode)
-{
-       return inode;
-}
 static inline struct inode *vn_to_inode(bhv_vnode_t *vnode)
 {
        return vnode;
@@ -100,8 +96,7 @@ extern bhv_vnode_t   *vn_hold(bhv_vnode_t *);
 
 static inline bhv_vnode_t *vn_grab(bhv_vnode_t *vp)
 {
-       struct inode *inode = igrab(vn_to_inode(vp));
-       return inode ? vn_from_inode(inode) : NULL;
+       return igrab(vn_to_inode(vp));
 }
 
 /*