From: Alexey Dobriyan link(2) on directory is banned in VFS. Cc: Nathan Scott Signed-off-by: Andrew Morton --- fs/xfs/xfs_vnodeops.c | 2 -- 1 file changed, 2 deletions(-) diff -puN fs/xfs/xfs_vnodeops.c~xfs-remove-dir-check-in-xfs_link fs/xfs/xfs_vnodeops.c --- a/fs/xfs/xfs_vnodeops.c~xfs-remove-dir-check-in-xfs_link +++ a/fs/xfs/xfs_vnodeops.c @@ -2603,8 +2603,6 @@ xfs_link( vn_trace_entry(src_vp, __FUNCTION__, (inst_t *)__return_address); target_namelen = VNAMELEN(dentry); - if (VN_ISDIR(src_vp)) - return XFS_ERROR(EPERM); sip = xfs_vtoi(src_vp); tdp = XFS_BHVTOI(target_dir_bdp); _