1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-06 09:17:25 +00:00

- Move ifs_init() so that it can initialize ifs_inode_hash_mtx.

- s/ffs_inode_hash_lock/ifs_inode_hash_lock/
This commit is contained in:
Seigo Tanimura 2000-12-14 09:15:27 +00:00
parent 1405da432e
commit 0a439034dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70011

View File

@ -94,17 +94,6 @@ static struct vfsops ifs_vfsops = {
VFS_SET(ifs_vfsops, ifs, 0);
/*
* Initialize the filesystem; just use ufs_init.
*/
static int
ifs_init(vfsp)
struct vfsconf *vfsp;
{
mtx_init(&ifs_inode_hash_mtx, "ifsvgt", MTX_DEF);
return (ufs_init(vfsp));
}
/*
* ifs_mount
*
@ -150,6 +139,17 @@ static int ifs_inode_hash_lock;
*/
static struct mtx ifs_inode_hash_mtx;
/*
* Initialize the filesystem; just use ufs_init.
*/
static int
ifs_init(vfsp)
struct vfsconf *vfsp;
{
mtx_init(&ifs_inode_hash_mtx, "ifsvgt", MTX_DEF);
return (ufs_init(vfsp));
}
int
ifs_vget(mp, ino, vpp)
struct mount *mp;
@ -248,7 +248,7 @@ ifs_vget(mp, ino, vpp)
* themselves into the mutex.
*/
mtx_enter(&ifs_inode_hash_mtx, MTX_DEF);
want_wakeup = ffs_inode_hash_lock < 0;
want_wakeup = ifs_inode_hash_lock < 0;
ifs_inode_hash_lock = 0;
mtx_exit(&ifs_inode_hash_mtx, MTX_DEF);
if (want_wakeup)