提交 05a33328 编写于 作者: A Alexey Dobriyan 提交者: 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: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NNathan Scott <nathans@sgi.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册