summaryrefslogtreecommitdiffstats
path: root/sys/cddl/compat
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2008-08-31 14:26:08 +0000
committerattilio <attilio@FreeBSD.org>2008-08-31 14:26:08 +0000
commite2ca413d09b408b7f5caff24c9c36ddb1c43dc7c (patch)
tree904524119c5e2a5d0942f492871aaf2f60b15b70 /sys/cddl/compat
parent2d23f13f7f4cdaadb7247c2f0597e503d6035508 (diff)
downloadFreeBSD-src-e2ca413d09b408b7f5caff24c9c36ddb1c43dc7c.zip
FreeBSD-src-e2ca413d09b408b7f5caff24c9c36ddb1c43dc7c.tar.gz
Decontextualize vfs_busy(), vfs_unbusy() and vfs_mount_alloc() functions.
Manpages are updated accordingly. Tested by: Diego Sardina <siarodx at gmail dot com>
Diffstat (limited to 'sys/cddl/compat')
-rw-r--r--sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c b/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c
index 6360a72..e9120ee 100644
--- a/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c
+++ b/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c
@@ -193,7 +193,7 @@ domount(kthread_t *td, vnode_t *vp, const char *fstype, char *fspath,
* Allocate and initialize the filesystem.
*/
vn_lock(vp, LK_SHARED | LK_RETRY);
- mp = vfs_mount_alloc(vp, vfsp, fspath, td);
+ mp = vfs_mount_alloc(vp, vfsp, fspath, td->td_ucred);
VOP_UNLOCK(vp, 0);
mp->mnt_optnew = NULL;
@@ -263,7 +263,7 @@ domount(kthread_t *td, vnode_t *vp, const char *fstype, char *fspath,
VOP_UNLOCK(vp, 0);
if ((mp->mnt_flag & MNT_RDONLY) == 0)
error = vfs_allocate_syncvnode(mp);
- vfs_unbusy(mp, td);
+ vfs_unbusy(mp);
if (error)
vrele(vp);
else
@@ -273,7 +273,7 @@ domount(kthread_t *td, vnode_t *vp, const char *fstype, char *fspath,
vp->v_iflag &= ~VI_MOUNT;
VI_UNLOCK(vp);
VOP_UNLOCK(vp, 0);
- vfs_unbusy(mp, td);
+ vfs_unbusy(mp);
vfs_mount_destroy(mp);
}
return (error);
OpenPOWER on IntegriCloud