summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_export.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-03-24 07:31:38 +0000
committerjeff <jeff@FreeBSD.org>2005-03-24 07:31:38 +0000
commit0210925e420b2f938988d2f44a571ed45d741fd8 (patch)
treef3d973fb4ec17cc9f154c9cbec4c4315696f64ae /sys/kern/vfs_export.c
parent5528d705e8e8b6b0f31749590ccd903e2f51b55b (diff)
downloadFreeBSD-src-0210925e420b2f938988d2f44a571ed45d741fd8.zip
FreeBSD-src-0210925e420b2f938988d2f44a571ed45d741fd8.tar.gz
- Pass LK_EXCLUSIVE to VFS_ROOT() to satisfy the new flags argument. For
now, all calls to VFS_ROOT() should still acquire exclusive locks. Sponsored by: Isilon Systems, Inc.
Diffstat (limited to 'sys/kern/vfs_export.c')
-rw-r--r--sys/kern/vfs_export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index c4dcd77..fc90424 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -301,7 +301,7 @@ vfs_setpublicfs(mp, nep, argp)
bzero(&nfs_pub.np_handle, sizeof(nfs_pub.np_handle));
nfs_pub.np_handle.fh_fsid = mp->mnt_stat.f_fsid;
- if ((error = VFS_ROOT(mp, &rvp, curthread /* XXX */)))
+ if ((error = VFS_ROOT(mp, LK_EXCLUSIVE, &rvp, curthread /* XXX */)))
return (error);
if ((error = VFS_VPTOFH(rvp, &nfs_pub.np_handle.fh_fid)))
OpenPOWER on IntegriCloud