diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2005-03-24 07:36:16 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2005-03-24 07:36:16 +0000 |
| commit | d9b2d9f7a29757aedc9a26cbaee520cd505dca80 (patch) | |
| tree | d9054fa7f8d4f79ec2995ff851d64982c658aa72 /sys/fs/devfs | |
| parent | 080c061ad0c91adb2c165c6011070e6dba7f6d26 (diff) | |
Notes
Diffstat (limited to 'sys/fs/devfs')
| -rw-r--r-- | sys/fs/devfs/devfs_vfsops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c index 4c1c7b8fa409d..37212953e5ae5 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; { |
