Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dm dm: Include <sys/vnode.h> in dm.h
details: https://anonhg.NetBSD.org/src/rev/035746960da7
branches: trunk
changeset: 1005293:035746960da7
user: tkusumi <tkusumi%NetBSD.org@localhost>
date: Tue Dec 03 15:47:38 2019 +0000
description:
dm: Include <sys/vnode.h> in dm.h
dm.h already depends on vnode, so have dm.h include <sys/vnode.h>
instead of other .c files.
taken-from: DragonFlyBSD
diffstat:
sys/dev/dm/dm.h | 3 ++-
sys/dev/dm/dm_ioctl.c | 5 ++---
sys/dev/dm/dm_pdev.c | 5 ++---
sys/dev/dm/dm_target_linear.c | 5 ++---
sys/dev/dm/dm_target_snapshot.c | 5 ++---
sys/dev/dm/dm_target_stripe.c | 5 ++---
6 files changed, 12 insertions(+), 16 deletions(-)
diffs (147 lines):
diff -r d7929f743642 -r 035746960da7 sys/dev/dm/dm.h
--- a/sys/dev/dm/dm.h Tue Dec 03 15:36:00 2019 +0000
+++ b/sys/dev/dm/dm.h Tue Dec 03 15:47:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dm.h,v 1.29 2019/12/03 15:36:00 tkusumi Exp $ */
+/* $NetBSD: dm.h,v 1.30 2019/12/03 15:47:38 tkusumi Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -44,6 +44,7 @@
#include <sys/mutex.h>
#include <sys/rwlock.h>
#include <sys/queue.h>
+#include <sys/vnode.h>
#include <sys/device.h>
#include <sys/disk.h>
diff -r d7929f743642 -r 035746960da7 sys/dev/dm/dm_ioctl.c
--- a/sys/dev/dm/dm_ioctl.c Tue Dec 03 15:36:00 2019 +0000
+++ b/sys/dev/dm/dm_ioctl.c Tue Dec 03 15:47:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_ioctl.c,v 1.35 2019/12/01 06:53:31 tkusumi Exp $ */
+/* $NetBSD: dm_ioctl.c,v 1.36 2019/12/03 15:47:38 tkusumi Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dm_ioctl.c,v 1.35 2019/12/01 06:53:31 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_ioctl.c,v 1.36 2019/12/03 15:47:38 tkusumi Exp $");
/*
* Locking is used to synchronise between ioctl calls and between dm_table's
@@ -88,7 +88,6 @@
#include <sys/disklabel.h>
#include <sys/kmem.h>
#include <sys/malloc.h>
-#include <sys/vnode.h>
#include <machine/int_fmtio.h>
diff -r d7929f743642 -r 035746960da7 sys/dev/dm/dm_pdev.c
--- a/sys/dev/dm/dm_pdev.c Tue Dec 03 15:36:00 2019 +0000
+++ b/sys/dev/dm/dm_pdev.c Tue Dec 03 15:47:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_pdev.c,v 1.11 2019/12/01 16:33:33 tkusumi Exp $ */
+/* $NetBSD: dm_pdev.c,v 1.12 2019/12/03 15:47:38 tkusumi Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dm_pdev.c,v 1.11 2019/12/01 16:33:33 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_pdev.c,v 1.12 2019/12/03 15:47:38 tkusumi Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -38,7 +38,6 @@
#include <sys/fcntl.h>
#include <sys/kmem.h>
#include <sys/namei.h>
-#include <sys/vnode.h>
#include <dev/dkvar.h>
diff -r d7929f743642 -r 035746960da7 sys/dev/dm/dm_target_linear.c
--- a/sys/dev/dm/dm_target_linear.c Tue Dec 03 15:36:00 2019 +0000
+++ b/sys/dev/dm/dm_target_linear.c Tue Dec 03 15:47:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_target_linear.c,v 1.20 2019/12/02 16:10:34 tkusumi Exp $ */
+/* $NetBSD: dm_target_linear.c,v 1.21 2019/12/03 15:47:38 tkusumi Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dm_target_linear.c,v 1.20 2019/12/02 16:10:34 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_target_linear.c,v 1.21 2019/12/03 15:47:38 tkusumi Exp $");
/*
* This file implements initial version of device-mapper dklinear target.
@@ -40,7 +40,6 @@
#include <sys/buf.h>
#include <sys/kmem.h>
-#include <sys/vnode.h>
#include <sys/lwp.h>
#include <machine/int_fmtio.h>
diff -r d7929f743642 -r 035746960da7 sys/dev/dm/dm_target_snapshot.c
--- a/sys/dev/dm/dm_target_snapshot.c Tue Dec 03 15:36:00 2019 +0000
+++ b/sys/dev/dm/dm_target_snapshot.c Tue Dec 03 15:47:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_target_snapshot.c,v 1.21 2019/12/01 06:53:31 tkusumi Exp $ */
+/* $NetBSD: dm_target_snapshot.c,v 1.22 2019/12/03 15:47:38 tkusumi Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dm_target_snapshot.c,v 1.21 2019/12/01 06:53:31 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_target_snapshot.c,v 1.22 2019/12/03 15:47:38 tkusumi Exp $");
/*
* 1. Suspend my_data to temporarily stop any I/O while the snapshot is being
@@ -83,7 +83,6 @@
#include <sys/buf.h>
#include <sys/kmem.h>
-#include <sys/vnode.h>
#include "dm.h"
diff -r d7929f743642 -r 035746960da7 sys/dev/dm/dm_target_stripe.c
--- a/sys/dev/dm/dm_target_stripe.c Tue Dec 03 15:36:00 2019 +0000
+++ b/sys/dev/dm/dm_target_stripe.c Tue Dec 03 15:47:38 2019 +0000
@@ -1,4 +1,4 @@
-/*$NetBSD: dm_target_stripe.c,v 1.25 2019/12/01 06:53:31 tkusumi Exp $*/
+/*$NetBSD: dm_target_stripe.c,v 1.26 2019/12/03 15:47:38 tkusumi Exp $*/
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dm_target_stripe.c,v 1.25 2019/12/01 06:53:31 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_target_stripe.c,v 1.26 2019/12/03 15:47:38 tkusumi Exp $");
/*
* This file implements initial version of device-mapper stripe target.
@@ -39,7 +39,6 @@
#include <sys/buf.h>
#include <sys/kmem.h>
-#include <sys/vnode.h>
#include <sys/lwp.h>
#include "dm.h"
Home |
Main Index |
Thread Index |
Old Index