mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
Resize both VMIO and non-VMIO buffers if the size changes.
This commit is contained in:
parent
a8ce4271e2
commit
d63abe4172
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9969
@ -18,7 +18,7 @@
|
||||
* 5. Modifications may be freely made to this file if the above conditions
|
||||
* are met.
|
||||
*
|
||||
* $Id: vfs_bio.c,v 1.55 1995/07/25 05:41:57 davidg Exp $
|
||||
* $Id: vfs_bio.c,v 1.56 1995/07/29 11:40:18 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -837,13 +837,7 @@ getblk(struct vnode * vp, daddr_t blkno, int size, int slpflag, int slptimeo)
|
||||
* check for size inconsistancies
|
||||
*/
|
||||
if (bp->b_bcount != size) {
|
||||
if (bp->b_flags & B_VMIO) {
|
||||
allocbuf(bp, size);
|
||||
} else {
|
||||
bp->b_flags |= B_NOCACHE;
|
||||
VOP_BWRITE(bp);
|
||||
goto loop;
|
||||
}
|
||||
allocbuf(bp, size);
|
||||
}
|
||||
splx(s);
|
||||
return (bp);
|
||||
|
Loading…
Reference in New Issue
Block a user