Commit 5423caba authored by Christoph Hellwig's avatar Christoph Hellwig

XFS: Set inode operations later in xfs_iget_core

Modid: 2.5.x-xfs:slinx:128691a
parent 988c52ee
......@@ -118,13 +118,6 @@ xfs_iget_vnode_init(
{
vp->v_vfsp = XFS_MTOVFS(mp);
vp->v_type = IFTOVT(ip->i_d.di_mode);
/* 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.
*/
if (vp->v_type != VNON) {
linvfs_set_inode_ops(LINVFS_GET_IP(vp));
}
}
......@@ -159,7 +152,7 @@ xfs_iget_vnode_init(
* bno -- the block number starting the buffer containing the inode,
* if known (as by bulkstat), else 0.
*/
int
STATIC int
xfs_iget_core(
vnode_t *vp,
xfs_mount_t *mp,
......@@ -429,6 +422,14 @@ xfs_iget_core(
*ipp = ip;
/*
* 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.
*/
if (vp->v_type != VNON) {
linvfs_set_inode_ops(LINVFS_GET_IP(vp));
}
/* Update the linux inode */
error = vn_revalidate(vp, ATTR_COMM|ATTR_LAZY);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment