summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-06-27 16:13:29 +1000
committerNathan Scott <nathans@sgi.com>2006-06-27 16:13:29 +1000
commit05a3332885dd143496694bcecff223339880d7c9 (patch)
tree99b5080f4b6681fd4aaa8eb44ce7d7cf374ce955 /fs
parentebe1090549a7821faac09c467fc80b2245d0d30e (diff)
downloadlinux-3.10-05a3332885dd143496694bcecff223339880d7c9.tar.gz
linux-3.10-05a3332885dd143496694bcecff223339880d7c9.tar.bz2
linux-3.10-05a3332885dd143496694bcecff223339880d7c9.zip
[XFS] Remove redundant directory checks from inode link operation.
SGI-PV: 904196 SGI-Modid: xfs-linux-melb:xfs-kern:26343a Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/xfs/linux-2.6/xfs_iops.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c
index 12810baeb5d..b3b46457f15 100644
--- a/fs/xfs/linux-2.6/xfs_iops.c
+++ b/fs/xfs/linux-2.6/xfs_iops.c
@@ -419,9 +419,6 @@ xfs_vn_link(
int error;
ip = old_dentry->d_inode; /* inode being linked to */
- if (S_ISDIR(ip->i_mode))
- return -EPERM;
-
tdvp = vn_from_inode(dir);
vp = vn_from_inode(ip);