aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_super.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 184ef14856af..71ac3a6162e9 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(
613STATIC_INLINE void 613STATIC_INLINE void
614xfs_revalidate_inode( 614xfs_revalidate_inode(
615 xfs_mount_t *mp, 615 xfs_mount_t *mp,
616 bhv_vnode_t *vp, 616 struct inode *inode,
617 xfs_inode_t *ip) 617 xfs_inode_t *ip)
618{ 618{
619 struct inode *inode = vn_to_inode(vp);
620 619
621 inode->i_mode = ip->i_d.di_mode; 620 inode->i_mode = ip->i_d.di_mode;
622 inode->i_nlink = ip->i_d.di_nlink; 621 inode->i_nlink = ip->i_d.di_nlink;
@@ -665,13 +664,12 @@ xfs_revalidate_inode(
665void 664void
666xfs_initialize_vnode( 665xfs_initialize_vnode(
667 struct xfs_mount *mp, 666 struct xfs_mount *mp,
668 bhv_vnode_t *vp, 667 struct inode *inode,
669 struct xfs_inode *ip) 668 struct xfs_inode *ip)
670{ 669{
671 struct inode *inode = vn_to_inode(vp);
672 670
673 if (!ip->i_vnode) { 671 if (!ip->i_vnode) {
674 ip->i_vnode = vp; 672 ip->i_vnode = inode;
675 inode->i_private = ip; 673 inode->i_private = ip;
676 } 674 }
677 675
@@ -683,7 +681,7 @@ xfs_initialize_vnode(
683 * finish our work. 681 * finish our work.
684 */ 682 */
685 if (ip->i_d.di_mode != 0 && (inode->i_state & I_NEW)) { 683 if (ip->i_d.di_mode != 0 && (inode->i_state & I_NEW)) {
686 xfs_revalidate_inode(mp, vp, ip); 684 xfs_revalidate_inode(mp, inode, ip);
687 xfs_set_inodeops(inode); 685 xfs_set_inodeops(inode);
688 686
689 xfs_iflags_clear(ip, XFS_INEW); 687 xfs_iflags_clear(ip, XFS_INEW);
@@ -987,7 +985,7 @@ xfs_fs_alloc_inode(
987 vp = kmem_zone_alloc(xfs_vnode_zone, KM_SLEEP); 985 vp = kmem_zone_alloc(xfs_vnode_zone, KM_SLEEP);
988 if (unlikely(!vp)) 986 if (unlikely(!vp))
989 return NULL; 987 return NULL;
990 return vn_to_inode(vp); 988 return vp;
991} 989}
992 990
993STATIC void 991STATIC void
@@ -1001,7 +999,7 @@ STATIC void
1001xfs_fs_inode_init_once( 999xfs_fs_inode_init_once(
1002 void *vnode) 1000 void *vnode)
1003{ 1001{
1004 inode_init_once(vn_to_inode((bhv_vnode_t *)vnode)); 1002 inode_init_once((struct inode *)vnode);
1005} 1003}
1006 1004
1007/* 1005/*