mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
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.
This commit is contained in:
parent
6364965464
commit
2c61f6b389
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110084
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user