Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern bdwrite(): remove check for MFS major device number...
details: https://anonhg.NetBSD.org/src/rev/0d52be58b330
branches: trunk
changeset: 542768:0d52be58b330
user: pk <pk%NetBSD.org@localhost>
date: Thu Feb 06 11:46:49 2003 +0000
description:
bdwrite(): remove check for MFS major device number (why was 255 changed
to 4096?). In any case, bdevsw_lookup() will take care of it.
diffstat:
sys/kern/vfs_bio.c | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diffs (37 lines):
diff -r 8bd0d38ad675 -r 0d52be58b330 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c Thu Feb 06 11:22:35 2003 +0000
+++ b/sys/kern/vfs_bio.c Thu Feb 06 11:46:49 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_bio.c,v 1.89 2003/02/06 11:22:35 pk Exp $ */
+/* $NetBSD: vfs_bio.c,v 1.90 2003/02/06 11:46:49 pk Exp $ */
/*-
* Copyright (c) 1994 Christopher G. Demetriou
@@ -51,7 +51,7 @@
#include "opt_softdep.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.89 2003/02/06 11:22:35 pk Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.90 2003/02/06 11:46:49 pk Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -422,14 +422,10 @@
KASSERT(ISSET(bp->b_flags, B_BUSY));
/* If this is a tape block, write the block now. */
- /* XXX NOTE: the memory filesystem usurpes major device */
- /* XXX number 4095, which is a bad idea. */
- if (bp->b_dev != NODEV && major(bp->b_dev) != 4095) {
- bdev = bdevsw_lookup(bp->b_dev);
- if (bdev != NULL && bdev->d_type == D_TAPE) {
- bawrite(bp);
- return;
- }
+ bdev = bdevsw_lookup(bp->b_dev);
+ if (bdev != NULL && bdev->d_type == D_TAPE) {
+ bawrite(bp);
+ return;
}
/*
Home |
Main Index |
Thread Index |
Old Index