summaryrefslogtreecommitdiffstats
path: root/sys/fs/ext2fs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-07-30 03:56:17 +0000
committerkib <kib@FreeBSD.org>2014-07-30 03:56:17 +0000
commit4af1d57b25130479d52f78618815e22d50cff4d8 (patch)
treeda99d07701f732cb9a7ea1f978fc1e8a5724dfe9 /sys/fs/ext2fs
parent7c889ea487454b0962d2e64bd3110b9549a88afa (diff)
downloadFreeBSD-src-4af1d57b25130479d52f78618815e22d50cff4d8.zip
FreeBSD-src-4af1d57b25130479d52f78618815e22d50cff4d8.tar.gz
MFC r268764:
Check for the cross-device cross-link attempt in the VFS, instead of VOP_LINK() implemenations.
Diffstat (limited to 'sys/fs/ext2fs')
-rw-r--r--sys/fs/ext2fs/ext2_vnops.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/fs/ext2fs/ext2_vnops.c b/sys/fs/ext2fs/ext2_vnops.c
index 523e3c7..2046e33 100644
--- a/sys/fs/ext2fs/ext2_vnops.c
+++ b/sys/fs/ext2fs/ext2_vnops.c
@@ -666,10 +666,6 @@ ext2_link(struct vop_link_args *ap)
if ((cnp->cn_flags & HASBUF) == 0)
panic("ext2_link: no name");
#endif
- if (tdvp->v_mount != vp->v_mount) {
- error = EXDEV;
- goto out;
- }
ip = VTOI(vp);
if ((nlink_t)ip->i_nlink >= EXT2_LINK_MAX) {
error = EMLINK;
OpenPOWER on IntegriCloud