Commit 05a33328 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Nathan Scott

[XFS] Remove redundant directory checks from inode link operation.

SGI-PV: 904196
SGI-Modid: xfs-linux-melb:xfs-kern:26343a
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent ebe10905
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment