diff options
author | phk <phk@FreeBSD.org> | 2005-03-15 20:57:25 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-03-15 20:57:25 +0000 |
commit | c3c76f8185fd7f9995646dc6cb44a1777d80eabb (patch) | |
tree | eb297a278155e0363fa141c673bde7ae86289c95 | |
parent | 54d4b170ba58d9c68e9c061f308d68044a34056f (diff) | |
download | FreeBSD-src-c3c76f8185fd7f9995646dc6cb44a1777d80eabb.zip FreeBSD-src-c3c76f8185fd7f9995646dc6cb44a1777d80eabb.tar.gz |
Eliminate cdev pointer in inodes, they're not used or needed.
The cdev could have been pulled out of the mountpoint cheaper back
when it was used anyway.
-rw-r--r-- | sys/fs/msdosfs/msdosfs_denode.c | 4 | ||||
-rw-r--r-- | sys/fs/msdosfs/msdosfs_vfsops.c | 1 | ||||
-rw-r--r-- | sys/fs/msdosfs/msdosfsmount.h | 1 |
3 files changed, 1 insertions, 5 deletions
diff --git a/sys/fs/msdosfs/msdosfs_denode.c b/sys/fs/msdosfs/msdosfs_denode.c index 043e8e6..35e62cc 100644 --- a/sys/fs/msdosfs/msdosfs_denode.c +++ b/sys/fs/msdosfs/msdosfs_denode.c @@ -75,7 +75,7 @@ static MALLOC_DEFINE(M_MSDOSFSNODE, "MSDOSFS node", "MSDOSFS vnode private part" * If deget() succeeds it returns with the gotten denode locked(). * * pmp - address of msdosfsmount structure of the filesystem containing - * the denode of interest. The pm_dev field and the address of + * the denode of interest. The address of * the msdosfsmount structure are used. * dirclust - which cluster bp contains, if dirclust is 0 (root directory) * diroffset is relative to the beginning of the root directory, @@ -92,7 +92,6 @@ deget(pmp, dirclust, diroffset, depp) { int error; u_int hash; - struct cdev *dev = pmp->pm_dev; struct mount *mntp = pmp->pm_mountp; struct direntry *direntptr; struct denode *ldep; @@ -155,7 +154,6 @@ deget(pmp, dirclust, diroffset, depp) nvp->v_data = ldep; ldep->de_vnode = nvp; ldep->de_flag = 0; - ldep->de_dev = dev; ldep->de_dirclust = dirclust; ldep->de_diroffset = diroffset; fc_purge(ldep, 0); /* init the fat cache for this denode */ diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c index 2966e30..d02b952 100644 --- a/sys/fs/msdosfs/msdosfs_vfsops.c +++ b/sys/fs/msdosfs/msdosfs_vfsops.c @@ -676,7 +676,6 @@ mountmsdosfs(devvp, mp, td) /* * fillinusemap() needs pm_devvp. */ - pmp->pm_dev = dev; pmp->pm_devvp = devvp; /* diff --git a/sys/fs/msdosfs/msdosfsmount.h b/sys/fs/msdosfs/msdosfsmount.h index fd34739..f7f2dff 100644 --- a/sys/fs/msdosfs/msdosfsmount.h +++ b/sys/fs/msdosfs/msdosfsmount.h @@ -66,7 +66,6 @@ struct msdosfs_fileno; */ struct msdosfsmount { struct mount *pm_mountp;/* vfs mount struct for this fs */ - struct cdev *pm_dev; /* block special device mounted */ struct g_consumer *pm_cp; struct bufobj *pm_bo; uid_t pm_uid; /* uid to set as owner of the files */ |