aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2008-02-09 11:12:18 +0000
committerRobert Watson <rwatson@FreeBSD.org>2008-02-09 11:12:18 +0000
commit8571e9a1893419853ef593916b3983aab4955837 (patch)
tree1a390f6262c27f4d224a347edcd7ea60d148675f /sys
parent6d656800dbd7059985da943aebdecb2c2af52878 (diff)
downloadsrc-8571e9a1893419853ef593916b3983aab4955837.tar.gz
src-8571e9a1893419853ef593916b3983aab4955837.zip
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
Notes
Notes: svn path=/head/; revision=176129
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/coda/cnode.h3
-rw-r--r--sys/fs/coda/coda_vfsops.c21
2 files changed, 0 insertions, 24 deletions
diff --git a/sys/fs/coda/cnode.h b/sys/fs/coda/cnode.h
index 297d53895308..414145d94c38 100644
--- a/sys/fs/coda/cnode.h
+++ b/sys/fs/coda/cnode.h
@@ -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)
diff --git a/sys/fs/coda/coda_vfsops.c b/sys/fs/coda/coda_vfsops.c
index 4e5397f367a0..b12fb538a822 100644
--- a/sys/fs/coda/coda_vfsops.c
+++ b/sys/fs/coda/coda_vfsops.c
@@ -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,