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/coda/coda_vfsops.c | |
parent | 57a3bc41636f110374799dd408647fe26f107ac3 (diff) | |
download | src-f257b7a54b4fe77840cf694314bdc401e00c31a1.tar.gz src-f257b7a54b4fe77840cf694314bdc401e00c31a1.zip |
Make VFS_ROOT() and vflush() take a thread argument.
This is to allow filesystems to decide based on the passed thread
which vnode to return.
Several filesystems used curthread, they now use the passed thread.
Notes
Notes:
svn path=/head/; revision=132023
Diffstat (limited to 'sys/coda/coda_vfsops.c')
-rw-r--r-- | sys/coda/coda_vfsops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/coda/coda_vfsops.c b/sys/coda/coda_vfsops.c index e7290e770807..09025d57b731 100644 --- a/sys/coda/coda_vfsops.c +++ b/sys/coda/coda_vfsops.c @@ -252,7 +252,7 @@ coda_unmount(vfsp, mntflags, td) active = coda_kill(vfsp, NOT_DOWNCALL); ASSERT_VOP_LOCKED(mi->mi_rootvp, "coda_unmount"); mi->mi_rootvp->v_vflag &= ~VV_ROOT; - error = vflush(mi->mi_vfsp, 0, FORCECLOSE); + error = vflush(mi->mi_vfsp, 0, FORCECLOSE, td); #ifdef CODA_VERBOSE printf("coda_unmount: active = %d, vflush active %d\n", active, error); #endif @@ -280,9 +280,10 @@ coda_unmount(vfsp, mntflags, td) * find root of cfs */ int -coda_root(vfsp, vpp) +coda_root(vfsp, vpp, td) struct mount *vfsp; struct vnode **vpp; + struct thread *td; { struct coda_mntinfo *mi = vftomi(vfsp); struct vnode **result; |