From da8feef99a1863b3cdff350f8a1a089d34d09185 Mon Sep 17 00:00:00 2001 From: dholland Date: Fri, 25 Jul 2014 08:02:18 +0000 Subject: 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. --- sys/dev/fss.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/dev/fss.c') 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 -__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 #include @@ -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 }; -- cgit