Remove unused devtomp(), which exploited UFS-specific knowledge to find

the mountpoint for a specific device.  This was implemented incorrectly,
a bad idea in a fundamental sense, and also never used, so presumably
a long-idle debugging function.

MFC after:	1 month
This commit is contained in:
Robert Watson 2008-02-09 11:12:18 +00:00
parent 6d656800db
commit 8571e9a189
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176129
2 changed files with 0 additions and 24 deletions

View File

@ -191,9 +191,6 @@ int coda_vmflush(struct cnode *cp);
struct cnode *make_coda_node(CodaFid *fid, struct mount *vfsp, short type);
int coda_vnodeopstats_init(void);
/* coda_vfsops.h */
struct mount *devtomp(struct cdev *dev);
/* sigh */
#define CODA_RDWR ((u_long) 31)

View File

@ -468,27 +468,6 @@ getNewVnode(vpp)
NULL, NULL);
}
#include <ufs/ufs/extattr.h>
#include <ufs/ufs/quota.h>
#include <ufs/ufs/ufsmount.h>
/* get the mount structure corresponding to a given device. Assume
* device corresponds to a UFS. Return NULL if no device is found.
*/
struct mount *devtomp(dev)
struct cdev *dev;
{
struct mount *mp;
TAILQ_FOREACH(mp, &mountlist, mnt_list) {
if (((VFSTOUFS(mp))->um_dev == dev)) {
/* mount corresponds to UFS and the device matches one we want */
return(mp);
}
}
/* mount structure wasn't found */
return(NULL);
}
struct vfsops coda_vfsops = {
.vfs_mount = coda_mount,
.vfs_root = coda_root,