diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_iops.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index 215158cbac43..01d9b3f1e044 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c | |||
@@ -372,13 +372,13 @@ xfs_vn_lookup( | |||
372 | struct dentry *dentry, | 372 | struct dentry *dentry, |
373 | struct nameidata *nd) | 373 | struct nameidata *nd) |
374 | { | 374 | { |
375 | bhv_vnode_t *cvp; | 375 | struct xfs_inode *cip; |
376 | int error; | 376 | int error; |
377 | 377 | ||
378 | if (dentry->d_name.len >= MAXNAMELEN) | 378 | if (dentry->d_name.len >= MAXNAMELEN) |
379 | return ERR_PTR(-ENAMETOOLONG); | 379 | return ERR_PTR(-ENAMETOOLONG); |
380 | 380 | ||
381 | error = xfs_lookup(XFS_I(dir), dentry, &cvp); | 381 | error = xfs_lookup(XFS_I(dir), dentry, &cip); |
382 | if (unlikely(error)) { | 382 | if (unlikely(error)) { |
383 | if (unlikely(error != ENOENT)) | 383 | if (unlikely(error != ENOENT)) |
384 | return ERR_PTR(-error); | 384 | return ERR_PTR(-error); |
@@ -386,7 +386,7 @@ xfs_vn_lookup( | |||
386 | return NULL; | 386 | return NULL; |
387 | } | 387 | } |
388 | 388 | ||
389 | return d_splice_alias(vn_to_inode(cvp), dentry); | 389 | return d_splice_alias(cip->i_vnode, dentry); |
390 | } | 390 | } |
391 | 391 | ||
392 | STATIC int | 392 | STATIC int |