diff options
author | Christoph Hellwig <hch@sgi.com> | 2006-01-11 04:58:44 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2006-01-11 04:58:44 -0500 |
commit | 75e17b3caf29b262000dc7348f1be9a7d5403463 (patch) | |
tree | 4bdf782dd3624fd23832b035ebbdbb4daca7dd94 /fs/xfs/xfs_vnodeops.c | |
parent | 204ab25f36fbd44a24458c0227cf2629c8caf00d (diff) |
[XFS] add helper to get xfs_inode from vnode
SGI-PV: 947206
SGI-Modid: xfs-linux-melb:xfs-kern:203960a
Signed-off-by: Christoph Hellwig <hch@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 3e8f1cbb7049..b12fcfcb196d 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -2578,7 +2578,6 @@ xfs_link( | |||
2578 | int cancel_flags; | 2578 | int cancel_flags; |
2579 | int committed; | 2579 | int committed; |
2580 | vnode_t *target_dir_vp; | 2580 | vnode_t *target_dir_vp; |
2581 | bhv_desc_t *src_bdp; | ||
2582 | int resblks; | 2581 | int resblks; |
2583 | char *target_name = VNAME(dentry); | 2582 | char *target_name = VNAME(dentry); |
2584 | int target_namelen; | 2583 | int target_namelen; |
@@ -2591,8 +2590,7 @@ xfs_link( | |||
2591 | if (VN_ISDIR(src_vp)) | 2590 | if (VN_ISDIR(src_vp)) |
2592 | return XFS_ERROR(EPERM); | 2591 | return XFS_ERROR(EPERM); |
2593 | 2592 | ||
2594 | src_bdp = vn_bhv_lookup_unlocked(VN_BHV_HEAD(src_vp), &xfs_vnodeops); | 2593 | sip = xfs_vtoi(src_vp); |
2595 | sip = XFS_BHVTOI(src_bdp); | ||
2596 | tdp = XFS_BHVTOI(target_dir_bdp); | 2594 | tdp = XFS_BHVTOI(target_dir_bdp); |
2597 | mp = tdp->i_mount; | 2595 | mp = tdp->i_mount; |
2598 | if (XFS_FORCED_SHUTDOWN(mp)) | 2596 | if (XFS_FORCED_SHUTDOWN(mp)) |