Index: share/man/man9/vfs_busy.9 =================================================================== --- share/man/man9/vfs_busy.9 (revision 208349) +++ share/man/man9/vfs_busy.9 (working copy) @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 2, 2008 +.Dd June 5, 2010 .Dt VFS_BUSY 9 .Os .Sh NAME @@ -40,9 +40,9 @@ .Sh DESCRIPTION The .Fn vfs_busy -function marks a mount point as busy. -The purpose of this -function is to synchronize access to a mount point. +function marks a mount point as busy by incrementing the value of the +.Fa mp->mnt_lockref +field. It also delays unmounting by sleeping on .Fa mp if the @@ -50,7 +50,7 @@ if the flag is set in .Fa mp->mnt_kern_flag and the -.Dv LK_NOWAIT +.Dv MBF_NOWAIT flag is .Em not set. @@ -75,9 +75,9 @@ drop the mountlist_mtx in the critical p .Sh RETURN VALUES A 0 value is returned on success. If the mount point is being -unmounted +unmounted and MBF_NOWAIT flag is specified .Er ENOENT -will always be returned. +will be returned. .Sh ERRORS .Bl -tag -width Er .It Bq Er ENOENT Index: share/man/man9/vfs_unbusy.9 =================================================================== --- share/man/man9/vfs_unbusy.9 (revision 208349) +++ share/man/man9/vfs_unbusy.9 (working copy) @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 29, 2008 +.Dd June 5, 2010 .Dt VFS_UNBUSY 9 .Os .Sh NAME @@ -40,9 +40,10 @@ .Sh DESCRIPTION The .Fn vfs_unbusy -function un-busies a mount point by unlocking -.Fa mp->mnt_lock . -The lock is typically acquired by calling +function un-busies a mount point by decrementing the +.Fa mp->mnt_lockref +field. +The referenece count is typically incremented by calling .Xr vfs_busy 9 prior to this call. .Pp @@ -51,12 +52,6 @@ Its arguments are: .It Fa mp The mount point to unbusy (unlock). .El -.Sh LOCKS -.Va mnt_lock -must be locked in -.Fa mp -prior to calling -this function, and it will be unlocked upon return. .Sh SEE ALSO .Xr vfs_busy 9 .Sh AUTHORS