From 4af1d57b25130479d52f78618815e22d50cff4d8 Mon Sep 17 00:00:00 2001 From: kib Date: Wed, 30 Jul 2014 03:56:17 +0000 Subject: MFC r268764: Check for the cross-device cross-link attempt in the VFS, instead of VOP_LINK() implemenations. --- sys/fs/ext2fs/ext2_vnops.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/fs/ext2fs') 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; -- cgit v1.1