diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 1b0494e3ddf7..a19c3d266991 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -358,23 +358,6 @@ vfs_getnewfsid(mp) simple_unlock(&mntid_slock); } -/* - * Get what should become the root fsid. - * - * This is somewhat of a hack. If the rootdev is not known we - * assume that vfs_getnewfsid() will be called momentarily to - * allocate it, and we return what vfs_getnewfsid() will return. - */ - -dev_t -vfs_getrootfsid(struct mount *mp) -{ - int mtype; - - mtype = mp->mnt_vfc->vfc_typenum; - return(makedev(255, mtype + (mntid_base << 16))); -} - /* * Knob to control the precision of file timestamps: * diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 1b0494e3ddf7..a19c3d266991 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -358,23 +358,6 @@ vfs_getnewfsid(mp) simple_unlock(&mntid_slock); } -/* - * Get what should become the root fsid. - * - * This is somewhat of a hack. If the rootdev is not known we - * assume that vfs_getnewfsid() will be called momentarily to - * allocate it, and we return what vfs_getnewfsid() will return. - */ - -dev_t -vfs_getrootfsid(struct mount *mp) -{ - int mtype; - - mtype = mp->mnt_vfc->vfc_typenum; - return(makedev(255, mtype + (mntid_base << 16))); -} - /* * Knob to control the precision of file timestamps: *