Skip to content

Commit

Permalink
[XFS] Remove redundant directory checks from inode link operation.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and Nathan Scott committed Jun 27, 2006
1 parent ebe1090 commit 05a3332
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/xfs/linux-2.6/xfs_iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 05a3332

Please sign in to comment.