aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_iget.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_iget.c')
-rw-r--r--fs/xfs/xfs_iget.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c
index d44342640ca3..539c2dd8eae8 100644
--- a/fs/xfs/xfs_iget.c
+++ b/fs/xfs/xfs_iget.c
@@ -288,10 +288,17 @@ finish_inode:
288 *ipp = ip; 288 *ipp = ip;
289 289
290 /* 290 /*
291 * Set up the Linux with the Linux inode.
292 */
293 ip->i_vnode = inode;
294 inode->i_private = ip;
295
296 /*
291 * If we have a real type for an on-disk inode, we can set ops(&unlock) 297 * If we have a real type for an on-disk inode, we can set ops(&unlock)
292 * now. If it's a new inode being created, xfs_ialloc will handle it. 298 * now. If it's a new inode being created, xfs_ialloc will handle it.
293 */ 299 */
294 xfs_initialize_vnode(mp, inode, ip); 300 if (ip->i_d.di_mode != 0)
301 xfs_setup_inode(ip);
295 return 0; 302 return 0;
296} 303}
297 304