Remove vnode->v_bsize. This was a dead-end.

This commit is contained in:
phk 2004-10-25 07:50:59 +00:00
parent 5065a91152
commit 3a8a530155
4 changed files with 1 additions and 13 deletions

View File

@ -2569,13 +2569,6 @@ getblk(struct vnode * vp, daddr_t blkno, int size, int slpflag, int slptimeo,
else
bsize = size;
if (vp->v_bsize != bsize) {
#if 0
printf("WARNING: Wrong block size on vnode: %d should be %d\n", vp->v_bsize, bsize);
#endif
vp->v_bsize = bsize;
}
offset = blkno * bsize;
vmio = (VOP_GETVOBJECT(vp, NULL) == 0) &&
(vp->v_vflag & VV_OBJBUF);

View File

@ -863,10 +863,8 @@ getnewvnode(tag, mp, vops, vpp)
printf("NULL mp in getnewvnode()\n");
#endif
delmntque(vp);
if (mp != NULL) {
if (mp != NULL)
insmntque(vp, mp);
vp->v_bsize = mp->mnt_stat.f_iosize;
}
return (0);
}
@ -1812,7 +1810,6 @@ bdevvp(dev, vpp)
}
vp = nvp;
vp->v_type = VCHR;
vp->v_bsize = DEV_BSIZE;
addalias(vp, dev);
*vpp = vp;
return (0);

View File

@ -151,7 +151,6 @@ struct vnode {
#endif
dev_t v_cachedfs; /* cached fs id */
ino_t v_cachedid; /* cached file id */
int v_bsize; /* block size for I/O */
};
#endif /* defined(_KERNEL) || defined(_KVM_VNODE) */

View File

@ -1240,7 +1240,6 @@ ffs_vget(mp, ino, flags, vpp)
fs = ump->um_fs;
vp->v_vnlock->lk_flags |= LK_CANRECURSE;
vp->v_data = ip;
vp->v_bsize = fs->fs_bsize;
ip->i_vnode = vp;
ip->i_ump = ump;
ip->i_fs = fs;