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: Minor fixes/cleanups



details:   https://anonhg.NetBSD.org/src/rev/1b5fd6df8eef
branches:  trunk
changeset: 846935:1b5fd6df8eef
user:      tkusumi <tkusumi%NetBSD.org@localhost>
date:      Wed Dec 04 16:55:30 2019 +0000

description:
dm: Minor fixes/cleanups

diffstat:

 sys/dev/dm/device-mapper.c |  6 +++---
 sys/dev/dm/dm_pdev.c       |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r 97dd8752000b -r 1b5fd6df8eef sys/dev/dm/device-mapper.c
--- a/sys/dev/dm/device-mapper.c        Wed Dec 04 16:54:03 2019 +0000
+++ b/sys/dev/dm/device-mapper.c        Wed Dec 04 16:55:30 2019 +0000
@@ -1,4 +1,4 @@
-/*        $NetBSD: device-mapper.c,v 1.43 2019/12/04 15:31:12 tkusumi Exp $ */
+/*        $NetBSD: device-mapper.c,v 1.44 2019/12/04 16:55:30 tkusumi Exp $ */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -616,13 +616,13 @@
         * Find out what tables I want to select.
         */
        SLIST_FOREACH(table_en, tbl, next) {
-               /* I need need number of bytes not blocks. */
+               /* I need number of bytes not blocks. */
                table_start = table_en->start * DEV_BSIZE;
                /*
                 * I have to sub 1 from table_en->length to prevent
                 * off by one error
                 */
-               table_end = table_start + (table_en->length)* DEV_BSIZE;
+               table_end = table_start + table_en->length * DEV_BSIZE;
 
                start = MAX(table_start, buf_start);
 
diff -r 97dd8752000b -r 1b5fd6df8eef sys/dev/dm/dm_pdev.c
--- a/sys/dev/dm/dm_pdev.c      Wed Dec 04 16:54:03 2019 +0000
+++ b/sys/dev/dm/dm_pdev.c      Wed Dec 04 16:55:30 2019 +0000
@@ -1,4 +1,4 @@
-/*        $NetBSD: dm_pdev.c,v 1.14 2019/12/04 15:31:12 tkusumi Exp $      */
+/*        $NetBSD: dm_pdev.c,v 1.15 2019/12/04 16:55:30 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.14 2019/12/04 15:31:12 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_pdev.c,v 1.15 2019/12/04 16:55:30 tkusumi Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -43,7 +43,7 @@
 
 #include "dm.h"
 
-SLIST_HEAD(dm_pdevs, dm_pdev) dm_pdev_list;
+static SLIST_HEAD(dm_pdevs, dm_pdev) dm_pdev_list;
 
 static kmutex_t dm_pdev_mutex;
 



Home | Main Index | Thread Index | Old Index