diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2004-07-12 08:14:09 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2004-07-12 08:14:09 +0000 |
| commit | f257b7a54b4fe77840cf694314bdc401e00c31a1 (patch) | |
| tree | 8fe425c682e229149daf17e6533c0f750ba308d3 /sys/kern/vfs_subr.c | |
| parent | 57a3bc41636f110374799dd408647fe26f107ac3 (diff) | |
Notes
Diffstat (limited to 'sys/kern/vfs_subr.c')
| -rw-r--r-- | sys/kern/vfs_subr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index c0dff887c49e..53403db95735 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2258,7 +2258,7 @@ vdropl(vp) * * `rootrefs' specifies the base reference count for the root vnode * of this filesystem. The root vnode is considered busy if its - * v_usecount exceeds this value. On a successful return, vflush() + * v_usecount exceeds this value. On a successful return, vflush(, td) * will call vrele() on the root vnode exactly rootrefs times. * If the SKIPSYSTEM or WRITECLOSE flags are specified, rootrefs must * be zero. @@ -2269,12 +2269,12 @@ SYSCTL_INT(_debug, OID_AUTO, busyprt, CTLFLAG_RW, &busyprt, 0, ""); #endif int -vflush(mp, rootrefs, flags) +vflush(mp, rootrefs, flags, td) struct mount *mp; int rootrefs; int flags; + struct thread *td; { - struct thread *td = curthread; /* XXX */ struct vnode *vp, *nvp, *rootvp = NULL; struct vattr vattr; int busy = 0, error; @@ -2286,7 +2286,7 @@ vflush(mp, rootrefs, flags) * Get the filesystem root vnode. We can vput() it * immediately, since with rootrefs > 0, it won't go away. */ - if ((error = VFS_ROOT(mp, &rootvp)) != 0) + if ((error = VFS_ROOT(mp, &rootvp, td)) != 0) return (error); vput(rootvp); |
