X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/dd2ad1581cc57a3caccb48cc37ee07acb869ed8b..ca466baeb91097acf0817cd63a0c33886ca69d31:/sys/vfs/fdesc/fdesc_vfsops.c diff --git a/sys/vfs/fdesc/fdesc_vfsops.c b/sys/vfs/fdesc/fdesc_vfsops.c index 2fd562f35e..f39d25d746 100644 --- a/sys/vfs/fdesc/fdesc_vfsops.c +++ b/sys/vfs/fdesc/fdesc_vfsops.c @@ -36,7 +36,7 @@ * @(#)fdesc_vfsops.c 8.4 (Berkeley) 1/21/94 * * $FreeBSD: src/sys/miscfs/fdesc/fdesc_vfsops.c,v 1.22.2.3 2002/08/23 17:42:39 njl Exp $ - * $DragonFly: src/sys/vfs/fdesc/fdesc_vfsops.c,v 1.15 2005/07/26 15:43:35 hmp Exp $ + * $DragonFly: src/sys/vfs/fdesc/fdesc_vfsops.c,v 1.18 2006/05/05 21:15:09 dillon Exp $ */ /* @@ -87,7 +87,8 @@ fdesc_mount(struct mount *mp, char *path, caddr_t data, struct thread *td) if (mp->mnt_flag & MNT_UPDATE) return (EOPNOTSUPP); - vfs_add_vnodeops(mp, &mp->mnt_vn_norm_ops, fdesc_vnodeop_entries); + vfs_add_vnodeops(mp, &mp->mnt_vn_norm_ops, + fdesc_vnodeop_entries, 0); error = fdesc_allocvp(Froot, FD_ROOT, mp, &rvp, td); if (error) @@ -105,7 +106,7 @@ fdesc_mount(struct mount *mp, char *path, caddr_t data, struct thread *td) bzero(mp->mnt_stat.f_mntfromname, MNAMELEN); bcopy("fdesc", mp->mnt_stat.f_mntfromname, sizeof("fdesc")); - (void)fdesc_statfs(mp, &mp->mnt_stat, td); + fdesc_statfs(mp, &mp->mnt_stat, td); return (0); } @@ -141,7 +142,6 @@ fdesc_unmount(struct mount *mp, int mntflags, struct thread *td) int fdesc_root(struct mount *mp, struct vnode **vpp) { - struct thread *td = curthread; /* XXX */ struct vnode *vp; /* @@ -149,7 +149,7 @@ fdesc_root(struct mount *mp, struct vnode **vpp) */ vp = VFSTOFDESC(mp)->f_root; vref(vp); - vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); + vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); *vpp = vp; return (0); }