diff options
author | phk <phk@FreeBSD.org> | 2003-01-30 11:48:50 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-01-30 11:48:50 +0000 |
commit | ae21d4debd065e8062f8d8372c3f50ab8a9880c9 (patch) | |
tree | 221ed33b9515846478a3dc145a1b43ced0aa6c3c /sys/ia64 | |
parent | 007e4e600237b5c9629d8644670bb1cb3b42d638 (diff) | |
download | FreeBSD-src-ae21d4debd065e8062f8d8372c3f50ab8a9880c9.zip FreeBSD-src-ae21d4debd065e8062f8d8372c3f50ab8a9880c9.tar.gz |
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.
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/sscdisk.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/ia64/ia64/sscdisk.c b/sys/ia64/ia64/sscdisk.c index 74f10f6..c4d5195 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 { |