[XFS] call common xfs vnode-level helpers directly and remove vnode operations
[deliverable/linux.git] / fs / xfs / xfs_iget.c
index e07dcc1b70a6b6f9bc88bbef7e988b8c969da234..5806597b9ec4f9c57488326454a3f2f257775d1a 100644 (file)
@@ -342,7 +342,7 @@ finish_inode:
         * If we have a real type for an on-disk inode, we can set ops(&unlock)
         * now.  If it's a new inode being created, xfs_ialloc will handle it.
         */
-       bhv_vfs_init_vnode(XFS_MTOVFS(mp), vp, XFS_ITOBHV(ip), 1);
+       bhv_vfs_init_vnode(XFS_MTOVFS(mp), vp, ip, 1);
 
        return 0;
 }
@@ -536,7 +536,8 @@ xfs_ireclaim(xfs_inode_t *ip)
         */
        vp = XFS_ITOV_NULL(ip);
        if (vp) {
-               vn_bhv_remove(VN_BHV_HEAD(vp), XFS_ITOBHV(ip));
+               vn_to_inode(vp)->i_private = NULL;
+               ip->i_vnode = NULL;
        }
 
        /*
This page took 0.047696 seconds and 5 git commands to generate.