[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>
This commit is contained in:
parent
ebe1090549
commit
05a3332885
1 changed files with 0 additions and 3 deletions
|
@ -419,9 +419,6 @@ xfs_vn_link(
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
ip = old_dentry->d_inode; /* inode being linked to */
|
ip = old_dentry->d_inode; /* inode being linked to */
|
||||||
if (S_ISDIR(ip->i_mode))
|
|
||||||
return -EPERM;
|
|
||||||
|
|
||||||
tdvp = vn_from_inode(dir);
|
tdvp = vn_from_inode(dir);
|
||||||
vp = vn_from_inode(ip);
|
vp = vn_from_inode(ip);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue