summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-03-24 07:36:16 +0000
committerjeff <jeff@FreeBSD.org>2005-03-24 07:36:16 +0000
commit226bf6ead4eae284f20c2e0b92f5dd66207a9854 (patch)
treed9054fa7f8d4f79ec2995ff851d64982c658aa72 /sys/fs/devfs
parentc9591f9ecde6c2dcb84b934b65b4ffb61817f2d8 (diff)
downloadFreeBSD-src-226bf6ead4eae284f20c2e0b92f5dd66207a9854.zip
FreeBSD-src-226bf6ead4eae284f20c2e0b92f5dd66207a9854.tar.gz
- Update vfs_root implementations to match the new prototype. None of
these filesystems will support shared locks until they are explicitly modified to do so. Careful review must be done to ensure that this is safe for each individual filesystem. Sponsored by: Isilon Systems, Inc.
Diffstat (limited to 'sys/fs/devfs')
-rw-r--r--sys/fs/devfs/devfs_vfsops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c
index 4c1c7b8..3721295 100644
--- a/sys/fs/devfs/devfs_vfsops.c
+++ b/sys/fs/devfs/devfs_vfsops.c
@@ -96,7 +96,7 @@ devfs_mount(struct mount *mp, struct thread *td)
fmp->dm_basedir = fmp->dm_rootdir;
devfs_rules_newmount(fmp, td);
- error = devfs_root(mp, &rvp, td);
+ error = devfs_root(mp, LK_EXCLUSIVE, &rvp, td);
if (error) {
lockdestroy(&fmp->dm_lock);
FREE(fmp, M_DEVFS);
@@ -136,8 +136,9 @@ devfs_unmount(mp, mntflags, td)
/* Return locked reference to root. */
static int
-devfs_root(mp, vpp, td)
+devfs_root(mp, flags, vpp, td)
struct mount *mp;
+ int flags;
struct vnode **vpp;
struct thread *td;
{
OpenPOWER on IntegriCloud