summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-03-24 07:32:50 +0000
committerjeff <jeff@FreeBSD.org>2005-03-24 07:32:50 +0000
commitca7edef8ef1c8acb8e70a2ed968a9dc46480b621 (patch)
tree4e520c93a316ca1e8b8cb4b05b188b674c495fa3
parent0210925e420b2f938988d2f44a571ed45d741fd8 (diff)
downloadFreeBSD-src-ca7edef8ef1c8acb8e70a2ed968a9dc46480b621.zip
FreeBSD-src-ca7edef8ef1c8acb8e70a2ed968a9dc46480b621.tar.gz
- Update the ufs_root() prototype.
- Pass the ufs_root() flags argument to VFS_VGET() to allow callers to specify shared locks. Sponsored by: Isilon Systems, Inc.
-rw-r--r--sys/ufs/ufs/ufs_vfsops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_vfsops.c b/sys/ufs/ufs/ufs_vfsops.c
index 31a73ba..75b1d0d 100644
--- a/sys/ufs/ufs/ufs_vfsops.c
+++ b/sys/ufs/ufs/ufs_vfsops.c
@@ -66,15 +66,16 @@ MALLOC_DEFINE(M_UFSMNT, "UFS mount", "UFS mount structure");
* Return the root of a filesystem.
*/
int
-ufs_root(mp, vpp, td)
+ufs_root(mp, flags, vpp, td)
struct mount *mp;
+ int flags;
struct vnode **vpp;
struct thread *td;
{
struct vnode *nvp;
int error;
- error = VFS_VGET(mp, (ino_t)ROOTINO, LK_EXCLUSIVE, &nvp);
+ error = VFS_VGET(mp, (ino_t)ROOTINO, flags, &nvp);
if (error)
return (error);
*vpp = nvp;
OpenPOWER on IntegriCloud