diff options
author | ache <ache@FreeBSD.org> | 1995-01-21 06:32:26 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1995-01-21 06:32:26 +0000 |
commit | 3da24c0fb2e48446a2d7d087ccff7d7d2fc4d681 (patch) | |
tree | 382b8e7e3a414ddd92f8c22436d980cf103d3703 /sys | |
parent | 546fa44779e7010e2501d1b34759fd6b2360946b (diff) | |
download | FreeBSD-src-3da24c0fb2e48446a2d7d087ccff7d7d2fc4d681.zip FreeBSD-src-3da24c0fb2e48446a2d7d087ccff7d7d2fc4d681.tar.gz |
Restore original fix from ohki, not check m for NULL it is already done
in the code above.
Submitted by: ohki@gssm.otsuka.tsukuba.ac.jp
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_bio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index d4a8b9f..10b975f 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -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.22 1995/01/20 20:11:31 wpaul Exp $ + * $Id: vfs_bio.c,v 1.23 1995/01/20 23:30:42 ache Exp $ */ /* @@ -1159,11 +1159,11 @@ allocbuf(struct buf * bp, int size, int vmio) bufferdestroyed = 1; } s = splbio(); - if (m && (m->flags & PG_BUSY)) { + if (m->flags & PG_BUSY) { m->flags |= PG_WANTED; tsleep(m, PRIBIO, "pgtblk", 0); } else - if (m && m->valid == 0) + if (m->valid == 0) vm_page_free(m); splx(s); if (bufferdestroyed) |