aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/portalfs
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2004-07-12 08:14:09 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2004-07-12 08:14:09 +0000
commitf257b7a54b4fe77840cf694314bdc401e00c31a1 (patch)
tree8fe425c682e229149daf17e6533c0f750ba308d3 /sys/fs/portalfs
parent57a3bc41636f110374799dd408647fe26f107ac3 (diff)
downloadsrc-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/fs/portalfs')
-rw-r--r--sys/fs/portalfs/portal_vfsops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/portalfs/portal_vfsops.c b/sys/fs/portalfs/portal_vfsops.c
index 497b65ae8387..5354f8d08e43 100644
--- a/sys/fs/portalfs/portal_vfsops.c
+++ b/sys/fs/portalfs/portal_vfsops.c
@@ -170,7 +170,7 @@ portal_unmount(mp, mntflags, td)
return (EBUSY);
#endif
/* There is 1 extra root vnode reference (pm_root). */
- error = vflush(mp, 1, flags);
+ error = vflush(mp, 1, flags, td);
if (error)
return (error);
@@ -194,9 +194,10 @@ portal_unmount(mp, mntflags, td)
}
static int
-portal_root(mp, vpp)
+portal_root(mp, vpp, td)
struct mount *mp;
struct vnode **vpp;
+ struct thread *td;
{
struct thread *td = curthread; /* XXX */
struct vnode *vp;