Remove unused si_bsize_best field from struct cdev.

This commit is contained in:
Poul-Henning Kamp 2004-10-26 06:53:00 +00:00
parent fae974f156
commit 9b7cc97f6c
2 changed files with 1 additions and 5 deletions

View File

@ -739,9 +739,7 @@ vn_stat(vp, sb, active_cred, file_cred, td)
if (vap->va_type == VREG) {
sb->st_blksize = vap->va_blocksize;
} else if (vn_isdisk(vp, NULL)) {
sb->st_blksize = vp->v_rdev->si_bsize_best;
if (sb->st_blksize < vp->v_rdev->si_bsize_phys)
sb->st_blksize = vp->v_rdev->si_bsize_phys;
sb->st_blksize = vp->v_rdev->si_bsize_phys;
if (sb->st_blksize < BLKDEV_IOSIZE)
sb->st_blksize = BLKDEV_IOSIZE;
} else {

View File

@ -92,7 +92,6 @@ struct cdev {
struct {
struct mount *__sid_mountpoint;
int __sid_bsize_phys; /* min physical block size */
int __sid_bsize_best; /* optimal block size */
struct snapdata *__sid_snapdata;
} __si_disk;
} __si_u;
@ -102,7 +101,6 @@ struct cdev {
#define si_tty __si_u.__si_tty.__sit_tty
#define si_mountpoint __si_u.__si_disk.__sid_mountpoint
#define si_bsize_phys __si_u.__si_disk.__sid_bsize_phys
#define si_bsize_best __si_u.__si_disk.__sid_bsize_best
#define si_snapdata __si_u.__si_disk.__sid_snapdata
#ifdef _KERNEL