[XFS] kill vn_to_inode

Previous thread: [XFS] Remove vn_from_inode() by Linux Kernel Mailing List on Wednesday, August 13, 2008 - 4:00 pm. (1 message)

Next thread: [XFS] remove spurious VN_HOLD/VN_RELE calls from xfs_acl.c by Linux Kernel Mailing List on Wednesday, August 13, 2008 - 4:00 pm. (1 message)
From: Linux Kernel Mailing List
Date: Wednesday, August 13, 2008 - 4:00 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=863890...
Commit:     863890cd90e8b213f7028036c6e2200d93223527
Parent:     a19d033cd2cc66120f01b370ec081d67b59b7924
Author:     Christoph Hellwig <hch@infradead.org>
AuthorDate: Wed Aug 13 16:12:05 2008 +1000
Committer:  Lachlan McIlroy <lachlan@redback.melbourne.sgi.com>
CommitDate: Wed Aug 13 16:12:05 2008 +1000

    [XFS] kill vn_to_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:31761a
    
    Signed-off-by: Christoph Hellwig <hch@infradead.org>
    Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
---
 fs/xfs/linux-2.6/xfs_linux.h |    2 +-
 fs/xfs/linux-2.6/xfs_super.c |   14 ++++++--------
 fs/xfs/linux-2.6/xfs_vnode.c |    2 +-
 fs/xfs/linux-2.6/xfs_vnode.h |   24 ++++++++----------------
 fs/xfs/xfs_vnodeops.c        |    4 ++--
 5 files changed, 18 insertions(+), 28 deletions(-)

diff --git a/fs/xfs/linux-2.6/xfs_linux.h b/fs/xfs/linux-2.6/xfs_linux.h
index a9cd6e4..1b8dfdc 100644
--- a/fs/xfs/linux-2.6/xfs_linux.h
+++ b/fs/xfs/linux-2.6/xfs_linux.h
@@ -180,7 +180,7 @@
 #define xfs_sort(a,n,s,fn)	sort(a,n,s,fn,NULL)
 #define xfs_stack_trace()	dump_stack()
 #define xfs_itruncate_data(ip, off)	\
-	(-vmtruncate(vn_to_inode(VFS_I(ip)), (off)))
+	(-vmtruncate(VFS_I(ip), (off)))
 
 
 /* Move the kernel do_div definition off to one side */
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 184ef14..71ac3a6 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -613,10 +613,9 @@ xfs_set_inodeops(
 STATIC_INLINE void
 xfs_revalidate_inode(
 	xfs_mount_t		*mp,
-	bhv_vnode_t		*vp,
+	struct inode		*inode,
 	xfs_inode_t		*ip)
 {
-	struct inode		*inode = vn_to_inode(vp);
 
 	inode->i_mode	= ip->i_d.di_mode;
 	inode->i_nlink	= ...
Previous thread: [XFS] Remove vn_from_inode() by Linux Kernel Mailing List on Wednesday, August 13, 2008 - 4:00 pm. (1 message)

Next thread: [XFS] remove spurious VN_HOLD/VN_RELE calls from xfs_acl.c by Linux Kernel Mailing List on Wednesday, August 13, 2008 - 4:00 pm. (1 message)