From 2c61f6b3893ddd0c00e8808654b27b890b8d95b2 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 30 Jan 2003 11:48:50 +0000 Subject: [PATCH] Remove D_CANFREE from sscdisk.c. I belive it got here by copy&paste and I see no signs in the source code that BIO_DELETE was dealt with correctly and can only wonder what kind of trouble this may have caused. --- sys/ia64/ia64/sscdisk.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/ia64/ia64/sscdisk.c b/sys/ia64/ia64/sscdisk.c index 74f10f61a884..c4d5195f01bd 100644 --- a/sys/ia64/ia64/sscdisk.c +++ b/sys/ia64/ia64/sscdisk.c @@ -100,7 +100,7 @@ static struct cdevsw ssc_cdevsw = { /* maj */ CDEV_MAJOR, /* dump */ nodump, /* psize */ nopsize, - /* flags */ D_DISK | D_CANFREE, + /* flags */ D_DISK, }; static struct cdevsw sscdisk_cdevsw; @@ -189,9 +189,7 @@ sscstrategy(struct bio *bp) devstat_start_transaction(&sc->stats); - if (bp->bio_cmd == BIO_DELETE) { - dop = DEVSTAT_NO_DATA; - } else if (bp->bio_cmd == BIO_READ) { + if (bp->bio_cmd == BIO_READ) { dop = DEVSTAT_READ; sscop = SSC_READ; } else {