Remove the last remaining evidence of B_TAPE.
Reclaim 3 unused bits in b_flags
This commit is contained in:
parent
db1aae4f6e
commit
84bd0e1571
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)spec_vnops.c 8.14 (Berkeley) 5/21/95
|
||||
* $Id: spec_vnops.c,v 1.67 1998/07/15 02:32:22 bde Exp $
|
||||
* $Id: spec_vnops.c,v 1.68 1998/08/23 11:43:29 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -417,19 +417,9 @@ spec_ioctl(ap)
|
||||
switch (ap->a_vp->v_type) {
|
||||
|
||||
case VCHR:
|
||||
return ((*cdevsw[major(dev)]->d_ioctl)(dev, ap->a_command, ap->a_data,
|
||||
ap->a_fflag, ap->a_p));
|
||||
|
||||
case VBLK:
|
||||
if (ap->a_command == 0 && (intptr_t)ap->a_data == B_TAPE)
|
||||
if ((bdevsw[major(dev)]->d_flags & D_TYPEMASK) ==
|
||||
D_TAPE)
|
||||
return (0);
|
||||
else
|
||||
return (1);
|
||||
return ((*bdevsw[major(dev)]->d_ioctl)(dev, ap->a_command, ap->a_data,
|
||||
ap->a_fflag, ap->a_p));
|
||||
|
||||
return ((*cdevsw[major(dev)]->d_ioctl)(dev, ap->a_command,
|
||||
ap->a_data, ap->a_fflag, ap->a_p));
|
||||
default:
|
||||
panic("spec_ioctl");
|
||||
/* NOTREACHED */
|
||||
|
@ -11,7 +11,7 @@
|
||||
* 2. Absolutely no warranty of function or purpose is made by the author
|
||||
* John S. Dyson.
|
||||
*
|
||||
* $Id: vfs_bio.c,v 1.169 1998/08/13 08:09:07 dfr Exp $
|
||||
* $Id: vfs_bio.c,v 1.170 1998/08/24 08:39:38 dfr Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -459,10 +459,6 @@ bdwrite(struct buf * bp)
|
||||
brelse(bp);
|
||||
return;
|
||||
}
|
||||
if (bp->b_flags & B_TAPE) {
|
||||
bawrite(bp);
|
||||
return;
|
||||
}
|
||||
bp->b_flags &= ~(B_READ|B_RELBUF);
|
||||
if ((bp->b_flags & B_DELWRI) == 0) {
|
||||
bp->b_flags |= B_DONE | B_DELWRI;
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)spec_vnops.c 8.14 (Berkeley) 5/21/95
|
||||
* $Id: spec_vnops.c,v 1.67 1998/07/15 02:32:22 bde Exp $
|
||||
* $Id: spec_vnops.c,v 1.68 1998/08/23 11:43:29 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -417,19 +417,9 @@ spec_ioctl(ap)
|
||||
switch (ap->a_vp->v_type) {
|
||||
|
||||
case VCHR:
|
||||
return ((*cdevsw[major(dev)]->d_ioctl)(dev, ap->a_command, ap->a_data,
|
||||
ap->a_fflag, ap->a_p));
|
||||
|
||||
case VBLK:
|
||||
if (ap->a_command == 0 && (intptr_t)ap->a_data == B_TAPE)
|
||||
if ((bdevsw[major(dev)]->d_flags & D_TYPEMASK) ==
|
||||
D_TAPE)
|
||||
return (0);
|
||||
else
|
||||
return (1);
|
||||
return ((*bdevsw[major(dev)]->d_ioctl)(dev, ap->a_command, ap->a_data,
|
||||
ap->a_fflag, ap->a_p));
|
||||
|
||||
return ((*cdevsw[major(dev)]->d_ioctl)(dev, ap->a_command,
|
||||
ap->a_data, ap->a_fflag, ap->a_p));
|
||||
default:
|
||||
panic("spec_ioctl");
|
||||
/* NOTREACHED */
|
||||
|
Loading…
Reference in New Issue
Block a user