diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-02-09 11:12:18 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-02-09 11:12:18 +0000 |
commit | c06ae37dfb7827194ac4d58fd476d0330b7b0f6a (patch) | |
tree | 1a390f6262c27f4d224a347edcd7ea60d148675f /sys/fs/coda | |
parent | d28692763b00bd949c4f739aaa21219790a74fec (diff) | |
download | FreeBSD-src-c06ae37dfb7827194ac4d58fd476d0330b7b0f6a.zip FreeBSD-src-c06ae37dfb7827194ac4d58fd476d0330b7b0f6a.tar.gz |
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
Diffstat (limited to 'sys/fs/coda')
-rw-r--r-- | sys/fs/coda/cnode.h | 3 | ||||
-rw-r--r-- | sys/fs/coda/coda_vfsops.c | 21 |
2 files changed, 0 insertions, 24 deletions
diff --git a/sys/fs/coda/cnode.h b/sys/fs/coda/cnode.h index 297d538..414145d 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 4e5397f..b12fb53 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, |