diff options
| author | tkusumi <tkusumi@NetBSD.org> | 2019-12-01 06:53:31 +0000 |
|---|---|---|
| committer | tkusumi <tkusumi@NetBSD.org> | 2019-12-01 06:53:31 +0000 |
| commit | 9969b9dc28caf2a5cc89f5c87d0930e24caab69e (patch) | |
| tree | 7714c099cc4a3f7d215ff85501cc1a896402801e /sys/dev/dm/dm_target_snapshot.c | |
| parent | 7b816a505d3753358b6bae048646779ae08f3b17 (diff) | |
dm: Remove unused dm_dev::dev_type
Given OOP-like architecture of dm target device structure,
dm_dev doesn't need to have self contained target type field,
and in fact this is unused.
Diffstat (limited to 'sys/dev/dm/dm_target_snapshot.c')
| -rw-r--r-- | sys/dev/dm/dm_target_snapshot.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/dm/dm_target_snapshot.c b/sys/dev/dm/dm_target_snapshot.c index 76081704653..0173791678d 100644 --- a/sys/dev/dm/dm_target_snapshot.c +++ b/sys/dev/dm/dm_target_snapshot.c @@ -1,4 +1,4 @@ -/* $NetBSD: dm_target_snapshot.c,v 1.20 2019/10/15 00:13:53 chs Exp $ */ +/* $NetBSD: dm_target_snapshot.c,v 1.21 2019/12/01 06:53:31 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.20 2019/10/15 00:13:53 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dm_target_snapshot.c,v 1.21 2019/12/01 06:53:31 tkusumi Exp $"); /* * 1. Suspend my_data to temporarily stop any I/O while the snapshot is being @@ -243,7 +243,6 @@ dm_target_snapshot_init(dm_dev_t * dmv, void **target_config, char *params) *target_config = tsc; - dmv->dev_type = DM_SNAPSHOT_DEV; dmv->sec_size = dmp_snap->dmp_secsize; return 0; @@ -411,8 +410,6 @@ dm_target_snapshot_orig_init(dm_dev_t * dmv, void **target_config, char *params) tsoc = kmem_alloc(sizeof(dm_target_snapshot_origin_config_t), KM_SLEEP); tsoc->tsoc_real_dev = dmp_real; - dmv->dev_type = DM_SNAPSHOT_ORIG_DEV; - *target_config = tsoc; return 0; |
