diff options
author | jeff <jeff@FreeBSD.org> | 2005-03-24 07:32:50 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2005-03-24 07:32:50 +0000 |
commit | ca7edef8ef1c8acb8e70a2ed968a9dc46480b621 (patch) | |
tree | 4e520c93a316ca1e8b8cb4b05b188b674c495fa3 /sys/ufs | |
parent | 0210925e420b2f938988d2f44a571ed45d741fd8 (diff) | |
download | FreeBSD-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.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_vfsops.c | 5 |
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; |