Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ffs #ifdef a variable just like their use



details:   https://anonhg.NetBSD.org/src/rev/a9ef8c618283
branches:  trunk
changeset: 789912:a9ef8c618283
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Sep 12 20:00:15 2013 +0000

description:
#ifdef a variable just like their use

diffstat:

 sys/ufs/ffs/ffs_alloc.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r eb89e0a432c8 -r a9ef8c618283 sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c   Thu Sep 12 19:54:51 2013 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c   Thu Sep 12 20:00:15 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_alloc.c,v 1.138 2013/06/23 22:03:34 dholland Exp $ */
+/*     $NetBSD: ffs_alloc.c,v 1.139 2013/09/12 20:00:15 martin Exp $   */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.138 2013/06/23 22:03:34 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.139 2013/09/12 20:00:15 martin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -1630,11 +1630,16 @@
        struct discarddata *ts = arg;
        struct fs *fs = ts->fs;
        struct disk_discard_range ta;
+#ifdef TRIMDEBUG
        int error;
+#endif
 
        ta.bno = FFS_FSBTODB(fs, td->bno);
        ta.size = td->size >> DEV_BSHIFT;
-       error = VOP_IOCTL(td->devvp, DIOCDISCARD, &ta, FWRITE, FSCRED);
+#ifdef TRIMDEBUG
+       error =
+#endif
+               VOP_IOCTL(td->devvp, DIOCDISCARD, &ta, FWRITE, FSCRED);
 #ifdef TRIMDEBUG
        printf("trim(%" PRId64 ",%ld):%d\n", td->bno, td->size, error);
 #endif



Home | Main Index | Thread Index | Old Index