]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Replace the MNT_VNODE_FOREACH interface with MNT_VNODE_FOREACH_ALL.
authorKirk McKusick <mckusick@FreeBSD.org>
Tue, 17 Apr 2012 16:28:22 +0000 (16:28 +0000)
committerKirk McKusick <mckusick@FreeBSD.org>
Tue, 17 Apr 2012 16:28:22 +0000 (16:28 +0000)
commit71469bb38f7440f7bdae7452672091fed324cda3
tree0e74691cb191897ed22ab84b20109f1b4147b16d
parent9e21ef395ab886d44f9c6f369a00811fe0e474d5
Replace the MNT_VNODE_FOREACH interface with MNT_VNODE_FOREACH_ALL.
The primary changes are that the user of the interface no longer
needs to manage the mount-mutex locking and that the vnode that
is returned has its mutex locked (thus avoiding the need to check
to see if its is DOOMED or other possible end of life senarios).

To minimize compatibility issues for third-party developers, the
old MNT_VNODE_FOREACH interface will remain available so that this
change can be MFC'ed to 9. Following the MFC to 9, MNT_VNODE_FOREACH
will be removed in head.

The reason for this update is to prepare for the addition of the
MNT_VNODE_FOREACH_ACTIVE interface that will loop over just the
active vnodes associated with a mount point (typically less than
1% of the vnodes associated with the mount point).

Reviewed by: kib
Tested by:   Peter Holm
MFC after:   2 weeks
15 files changed:
sys/fs/coda/coda_subr.c
sys/fs/ext2fs/ext2_vfsops.c
sys/fs/msdosfs/msdosfs_vfsops.c
sys/fs/nfsclient/nfs_clsubs.c
sys/fs/nfsclient/nfs_clvfsops.c
sys/kern/vfs_default.c
sys/kern/vfs_mount.c
sys/kern/vfs_subr.c
sys/nfsclient/nfs_subs.c
sys/nfsclient/nfs_vfsops.c
sys/sys/mount.h
sys/ufs/ffs/ffs_snapshot.c
sys/ufs/ffs/ffs_softdep.c
sys/ufs/ffs/ffs_vfsops.c
sys/ufs/ufs/ufs_quota.c