diff options
| author | dholland <dholland@NetBSD.org> | 2014-07-25 08:02:18 +0000 |
|---|---|---|
| committer | dholland <dholland@NetBSD.org> | 2014-07-25 08:02:18 +0000 |
| commit | da8feef99a1863b3cdff350f8a1a089d34d09185 (patch) | |
| tree | 1c6c71186b1e535a1dc636a9188051e98bdd8561 /sys/dev/flash | |
| parent | 1be6681b34110f97e344843acf115f2eaf591a2b (diff) | |
Add d_discard to all struct bdevsw instances I could find.
I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.
Diffstat (limited to 'sys/dev/flash')
| -rw-r--r-- | sys/dev/flash/flash.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/flash/flash.c b/sys/dev/flash/flash.c index 312039bee9d..57e4515acec 100644 --- a/sys/dev/flash/flash.c +++ b/sys/dev/flash/flash.c @@ -1,4 +1,4 @@ -/* $NetBSD: flash.c,v 1.10 2013/09/13 22:18:42 joerg Exp $ */ +/* $NetBSD: flash.c,v 1.11 2014/07/25 08:02:19 dholland Exp $ */ /*- * Copyright (c) 2011 Department of Software Engineering, @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: flash.c,v 1.10 2013/09/13 22:18:42 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: flash.c,v 1.11 2014/07/25 08:02:19 dholland Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -98,6 +98,7 @@ const struct bdevsw flash_bdevsw = { .d_ioctl = flashioctl, .d_dump = flashdump, .d_psize = nosize, + .d_discard = nodiscard, /* XXX this driver probably wants a discard */ .d_flag = D_DISK | D_MPSAFE }; |
