From 8a1713aada9c142d3c2096e4857ff30970d9b1d0 Mon Sep 17 00:00:00 2001 From: alfred Date: Mon, 12 Jul 2004 08:14:09 +0000 Subject: 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. --- sys/fs/umapfs/umap_vfsops.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/fs/umapfs') diff --git a/sys/fs/umapfs/umap_vfsops.c b/sys/fs/umapfs/umap_vfsops.c index 1d7d0e5..c6f0e57 100644 --- a/sys/fs/umapfs/umap_vfsops.c +++ b/sys/fs/umapfs/umap_vfsops.c @@ -279,7 +279,7 @@ umapfs_unmount(mp, mntflags, td) return (EBUSY); #endif /* There is 1 extra root vnode reference (umapm_rootvp). */ - error = vflush(mp, 1, flags); + error = vflush(mp, 1, flags, td); if (error) return (error); @@ -292,9 +292,10 @@ umapfs_unmount(mp, mntflags, td) } static int -umapfs_root(mp, vpp) +umapfs_root(mp, vpp, td) struct mount *mp; struct vnode **vpp; + struct thread *td; { struct thread *td = curthread; /* XXX */ struct vnode *vp; -- cgit v1.1