summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ifs
diff options
context:
space:
mode:
authortanimura <tanimura@FreeBSD.org>2000-12-14 09:15:27 +0000
committertanimura <tanimura@FreeBSD.org>2000-12-14 09:15:27 +0000
commit016329311eb698008a57665fe31a9176dd4179ee (patch)
tree55be28917bda45af2ea66e43a52986a3f093be57 /sys/ufs/ifs
parente3880f5f55b5ddc2bd4cf330a88e173d02dd8834 (diff)
downloadFreeBSD-src-016329311eb698008a57665fe31a9176dd4179ee.zip
FreeBSD-src-016329311eb698008a57665fe31a9176dd4179ee.tar.gz
- Move ifs_init() so that it can initialize ifs_inode_hash_mtx.
- s/ffs_inode_hash_lock/ifs_inode_hash_lock/
Diffstat (limited to 'sys/ufs/ifs')
-rw-r--r--sys/ufs/ifs/ifs_vfsops.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/ufs/ifs/ifs_vfsops.c b/sys/ufs/ifs/ifs_vfsops.c
index 80a4135..5b72c03 100644
--- a/sys/ufs/ifs/ifs_vfsops.c
+++ b/sys/ufs/ifs/ifs_vfsops.c
@@ -95,17 +95,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
*
* A simple wrapper around ffs_mount - IFS filesystems right now can't
@@ -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 @@ restart:
* 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)
OpenPOWER on IntegriCloud