Remove vnode->v_bsize. This was a dead-end.
This commit is contained in:
parent
5065a91152
commit
3a8a530155
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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) */
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user