diff options
| author | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2006-01-12 17:47:08 -0500 |
| commit | 94bc2be31a01a3055ec94176e595dfe208e92d3b (patch) | |
| tree | ebfbe81c6718a6390bfa1b99c6d228237d818576 /fs/xfs/xfs_utils.c | |
| parent | c32a0b689cb9cc160cfcd19735bbf50bb70c6ef4 (diff) | |
| parent | 58cba4650a7a414eabd2b40cc9d8e45fcdf192d9 (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
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 | ||
