summaryrefslogtreecommitdiff
path: root/sys/ufs/mfs/mfs_vfsops.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-07-05 08:24:34 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-07-05 08:24:34 +0000
commit13c56cd7ba2bddfc8f64cfa73d5f3649b5a92148 (patch)
tree2d6249ff1c7a13de594c7707c9e9cd55fa5a701a /sys/ufs/mfs/mfs_vfsops.c
parent8cc0dd3c4a441a5e01cdcba604e2f37fcaee05f1 (diff)
makedev is a macro. Admittedly, it's not function-like at all,
and should probably be spelled MAKEDEV to not trip people.
Diffstat (limited to 'sys/ufs/mfs/mfs_vfsops.c')
-rw-r--r--sys/ufs/mfs/mfs_vfsops.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/ufs/mfs/mfs_vfsops.c b/sys/ufs/mfs/mfs_vfsops.c
index 56d5a68265a..66b51a54486 100644
--- a/sys/ufs/mfs/mfs_vfsops.c
+++ b/sys/ufs/mfs/mfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfs_vfsops.c,v 1.14 2001/04/12 17:16:52 csapuntz Exp $ */
+/* $OpenBSD: mfs_vfsops.c,v 1.15 2001/07/05 08:24:33 espie Exp $ */
/* $NetBSD: mfs_vfsops.c,v 1.10 1996/02/09 22:31:28 christos Exp $ */
/*
@@ -153,7 +153,8 @@ mfs_initminiroot(base)
mountroot = mfs_mountroot;
mfs_rootbase = base;
mfs_rootsize = fs->fs_fsize * fs->fs_size;
- rootdev = makedev(255, mfs_minor++);
+ rootdev = makedev(255, mfs_minor);
+ mfs_minor++;
return (mfs_rootsize);
}
@@ -210,8 +211,9 @@ mfs_mount(mp, path, data, ndp, p)
if (error)
return (error);
devvp->v_type = VBLK;
- if (checkalias(devvp, makedev(255, mfs_minor++), (struct mount *)0))
+ if (checkalias(devvp, makedev(255, mfs_minor), (struct mount *)0))
panic("mfs_mount: dup dev");
+ mfs_minor++;
mfsp = (struct mfsnode *)malloc(sizeof *mfsp, M_MFSNODE, M_WAITOK);
devvp->v_data = mfsp;
mfsp->mfs_baseoff = args.base;