diff options
Diffstat (limited to 'fs/xfs/xfs_utils.c')
| -rw-r--r-- | fs/xfs/xfs_utils.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/xfs/xfs_utils.c b/fs/xfs/xfs_utils.c index fefe1d60377f..34654ec6ae10 100644 --- a/fs/xfs/xfs_utils.c +++ b/fs/xfs/xfs_utils.c | |||
| @@ -55,16 +55,13 @@ xfs_get_dir_entry( | |||
| 55 | xfs_inode_t **ipp) | 55 | xfs_inode_t **ipp) |
| 56 | { | 56 | { |
| 57 | vnode_t *vp; | 57 | vnode_t *vp; |
| 58 | bhv_desc_t *bdp; | ||
| 59 | 58 | ||
| 60 | vp = VNAME_TO_VNODE(dentry); | 59 | vp = VNAME_TO_VNODE(dentry); |
| 61 | bdp = vn_bhv_lookup_unlocked(VN_BHV_HEAD(vp), &xfs_vnodeops); | 60 | |
| 62 | if (!bdp) { | 61 | *ipp = xfs_vtoi(vp); |
| 63 | *ipp = NULL; | 62 | if (!*ipp) |
| 64 | return XFS_ERROR(ENOENT); | 63 | return XFS_ERROR(ENOENT); |
| 65 | } | ||
| 66 | VN_HOLD(vp); | 64 | VN_HOLD(vp); |
| 67 | *ipp = XFS_BHVTOI(bdp); | ||
| 68 | return 0; | 65 | return 0; |
| 69 | } | 66 | } |
| 70 | 67 | ||
