diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 |
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2006-01-19 11:39:33 -0500 |
| commit | 944d79559d154c12becde0dab327016cf438f46c (patch) | |
| tree | 50c101806f4d3b6585222dda060559eb4f3e005a /fs/xfs/xfs_utils.c | |
| parent | d087e4bdd24ebe3ae3d0b265b6573ec901af4b4b (diff) | |
| parent | 0f36b018b2e314d45af86449f1a97facb1fbe300 (diff) | |
Merge branch 'master' of /usr/src/ntfs-2.6/
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 | ||
