diff options
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 2 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_vnode.h | 7 |
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 | |||
994 | xfs_fs_destroy_inode( | 994 | xfs_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 | ||
1000 | STATIC void | 1000 | STATIC 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 | */ |
30 | static inline bhv_vnode_t *vn_from_inode(struct inode *inode) | ||
31 | { | ||
32 | return inode; | ||
33 | } | ||
34 | static inline struct inode *vn_to_inode(bhv_vnode_t *vnode) | 30 | static 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 | ||
101 | static inline bhv_vnode_t *vn_grab(bhv_vnode_t *vp) | 97 | static 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 | /* |