summaryrefslogtreecommitdiffstats
path: root/sys/fs/specfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-02-11 12:49:58 +0000
committerphk <phk@FreeBSD.org>2003-02-11 12:49:58 +0000
commitab4aed671a88556ae70014b86f547d31bda0c80b (patch)
tree43fa177177ca1f453891519c109f91bebd60d021 /sys/fs/specfs
parenta61961945a92388339a076d9cd42eff7bb72c39d (diff)
downloadFreeBSD-src-ab4aed671a88556ae70014b86f547d31bda0c80b.zip
FreeBSD-src-ab4aed671a88556ae70014b86f547d31bda0c80b.tar.gz
Use the SI_CANDELETE flag on the dev_t rather than the D_CANFREE flag
on the cdevsw to determine ability to handle the BIO_DELETE request.
Diffstat (limited to 'sys/fs/specfs')
-rw-r--r--sys/fs/specfs/spec_vnops.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/fs/specfs/spec_vnops.c b/sys/fs/specfs/spec_vnops.c
index 1b34ac8..f8c8a43 100644
--- a/sys/fs/specfs/spec_vnops.c
+++ b/sys/fs/specfs/spec_vnops.c
@@ -562,15 +562,13 @@ spec_freeblks(ap)
daddr_t a_length;
} */ *ap;
{
- struct cdevsw *bsw;
struct buf *bp;
/*
* XXX: This assumes that strategy does the deed right away.
* XXX: this may not be TRTTD.
*/
- bsw = devsw(ap->a_vp->v_rdev);
- if ((bsw->d_flags & D_CANFREE) == 0)
+ if ((ap->a_vp->v_rdev->si_flags & SI_CANDELETE) == 0)
return (0);
bp = geteblk(ap->a_length);
bp->b_iocmd = BIO_DELETE;
OpenPOWER on IntegriCloud