diff options
author | jeff <jeff@FreeBSD.org> | 2005-03-24 07:31:38 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2005-03-24 07:31:38 +0000 |
commit | 0210925e420b2f938988d2f44a571ed45d741fd8 (patch) | |
tree | f3d973fb4ec17cc9f154c9cbec4c4315696f64ae /sys/kern/vfs_export.c | |
parent | 5528d705e8e8b6b0f31749590ccd903e2f51b55b (diff) | |
download | FreeBSD-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.c | 2 |
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))) |