aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vnodeops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r--fs/xfs/xfs_vnodeops.c4
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))