mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-25 03:05:08 +00:00
Yet another small block FS bug fix.
This commit is contained in:
parent
2d6ec99c0a
commit
fec16d9994
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12413
|
@ -33,7 +33,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_cluster.c 8.7 (Berkeley) 2/13/94
|
||||
* $Id: vfs_cluster.c,v 1.26 1995/11/19 20:42:25 dyson Exp $
|
||||
* $Id: vfs_cluster.c,v 1.27 1995/11/20 03:55:48 dyson Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -366,7 +366,7 @@ cluster_rbuild(vp, filesize, lbn, blkno, size, run)
|
|||
m = bogus_page;
|
||||
}
|
||||
if ((bp->b_npages == 0) ||
|
||||
(bp->b_pages[bp->b_npages] != m)) {
|
||||
(bp->b_pages[bp->b_npages-1] != m)) {
|
||||
bp->b_pages[bp->b_npages] = m;
|
||||
bp->b_npages++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue