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/fss.c | |
| 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/fss.c')
| -rw-r--r-- | sys/dev/fss.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/fss.c b/sys/dev/fss.c index e8b82a69d21..d19bbadc782 100644 --- a/sys/dev/fss.c +++ b/sys/dev/fss.c @@ -1,4 +1,4 @@ -/* $NetBSD: fss.c,v 1.89 2014/05/25 13:52:12 hannken Exp $ */ +/* $NetBSD: fss.c,v 1.90 2014/07/25 08:02:19 dholland Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.89 2014/05/25 13:52:12 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.90 2014/07/25 08:02:19 dholland Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -101,9 +101,11 @@ static struct vfs_hooks fss_vfs_hooks = { const struct bdevsw fss_bdevsw = { .d_open = fss_open, .d_close = fss_close, - .d_strategy = fss_strategy, fss_ioctl, + .d_strategy = fss_strategy, + .d_ioctl = fss_ioctl, .d_dump = fss_dump, .d_psize = fss_size, + .d_discard = nodiscard, .d_flag = D_DISK | D_MPSAFE }; |
