git: sys/vfs/tmpfs: Remove duplicated cross-device check on nlink vop
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Wed May 13 15:35:02 PDT 2015
commit 0d421097a3ece111e0d4cebe2651b7a3500774c3
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Thu May 14 06:54:24 2015 +0900
sys/vfs/tmpfs: Remove duplicated cross-device check on nlink vop
- 'if (dvp->v_mount != vp->v_mount)' which avoids cross-device
hard link appears twice in this function after this one.
- Maybe this should be done in sys/kern/vfs_vopops.c considering
fs that implement nlink have the same check (not sure if it
should be applied to all fs though e.g. unionfs).
# grep -rIl EXDEV sys/vfs/
sys/vfs/smbfs/smbfs_vnops.c
sys/vfs/union/union_vnops.c
sys/vfs/tmpfs/tmpfs_vnops.c
sys/vfs/dirfs/dirfs_vnops.c
sys/vfs/nfs/nfs_serv.c
sys/vfs/nfs/nfs_vnops.c
sys/vfs/hammer2/hammer2_vnops.c
sys/vfs/puffs/puffs_vfsops.c
sys/vfs/puffs/puffs_vnops.c
sys/vfs/ufs/ufs_vnops.c
sys/vfs/msdosfs/msdosfs_vnops.c
sys/vfs/hammer/hammer_vnops.c
Summary of changes:
sys/vfs/tmpfs/tmpfs_vnops.c | 2 --
1 file changed, 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0d421097a3ece111e0d4cebe2651b7a3500774c3
--
DragonFly BSD source repository
More information about the Commits
mailing list