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
|
else
|
||||||
bsize = size;
|
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;
|
offset = blkno * bsize;
|
||||||
vmio = (VOP_GETVOBJECT(vp, NULL) == 0) &&
|
vmio = (VOP_GETVOBJECT(vp, NULL) == 0) &&
|
||||||
(vp->v_vflag & VV_OBJBUF);
|
(vp->v_vflag & VV_OBJBUF);
|
||||||
|
@ -863,10 +863,8 @@ getnewvnode(tag, mp, vops, vpp)
|
|||||||
printf("NULL mp in getnewvnode()\n");
|
printf("NULL mp in getnewvnode()\n");
|
||||||
#endif
|
#endif
|
||||||
delmntque(vp);
|
delmntque(vp);
|
||||||
if (mp != NULL) {
|
if (mp != NULL)
|
||||||
insmntque(vp, mp);
|
insmntque(vp, mp);
|
||||||
vp->v_bsize = mp->mnt_stat.f_iosize;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
@ -1812,7 +1810,6 @@ bdevvp(dev, vpp)
|
|||||||
}
|
}
|
||||||
vp = nvp;
|
vp = nvp;
|
||||||
vp->v_type = VCHR;
|
vp->v_type = VCHR;
|
||||||
vp->v_bsize = DEV_BSIZE;
|
|
||||||
addalias(vp, dev);
|
addalias(vp, dev);
|
||||||
*vpp = vp;
|
*vpp = vp;
|
||||||
return (0);
|
return (0);
|
||||||
|
@ -151,7 +151,6 @@ struct vnode {
|
|||||||
#endif
|
#endif
|
||||||
dev_t v_cachedfs; /* cached fs id */
|
dev_t v_cachedfs; /* cached fs id */
|
||||||
ino_t v_cachedid; /* cached file id */
|
ino_t v_cachedid; /* cached file id */
|
||||||
int v_bsize; /* block size for I/O */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* defined(_KERNEL) || defined(_KVM_VNODE) */
|
#endif /* defined(_KERNEL) || defined(_KVM_VNODE) */
|
||||||
|
@ -1240,7 +1240,6 @@ ffs_vget(mp, ino, flags, vpp)
|
|||||||
fs = ump->um_fs;
|
fs = ump->um_fs;
|
||||||
vp->v_vnlock->lk_flags |= LK_CANRECURSE;
|
vp->v_vnlock->lk_flags |= LK_CANRECURSE;
|
||||||
vp->v_data = ip;
|
vp->v_data = ip;
|
||||||
vp->v_bsize = fs->fs_bsize;
|
|
||||||
ip->i_vnode = vp;
|
ip->i_vnode = vp;
|
||||||
ip->i_ump = ump;
|
ip->i_ump = ump;
|
||||||
ip->i_fs = fs;
|
ip->i_fs = fs;
|
||||||
|
Loading…
Reference in New Issue
Block a user