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/nfs4client/nfs4_vfsops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/nfs4client') diff --git a/sys/nfs4client/nfs4_vfsops.c b/sys/nfs4client/nfs4_vfsops.c index e20d176..cf730ad 100644 --- a/sys/nfs4client/nfs4_vfsops.c +++ b/sys/nfs4client/nfs4_vfsops.c @@ -656,7 +656,7 @@ nfs_unmount(struct mount *mp, int mntflags, struct thread *td) nmp = VFSTONFS(mp); /* * Goes something like this.. - * - Call vflush() to clear out vnodes for this filesystem + * - Call vflush(, td) to clear out vnodes for this filesystem * - Close the socket * - Free up the data structures */ @@ -668,7 +668,7 @@ nfs_unmount(struct mount *mp, int mntflags, struct thread *td) nfs4dev_purge(); } - error = vflush(mp, 0, flags); + error = vflush(mp, 0, flags, td); if (error) return (error); @@ -689,7 +689,7 @@ nfs_unmount(struct mount *mp, int mntflags, struct thread *td) * Return root of a filesystem */ static int -nfs_root(struct mount *mp, struct vnode **vpp) +nfs_root(struct mount *mp, struct vnode **vpp, struct thread *td) { struct vnode *vp; struct nfsmount *nmp; -- cgit v1.1