Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs Avoid using magic numbers for arguments of workq...



details:   https://anonhg.NetBSD.org/src/rev/73cc8fb753b1
branches:  trunk
changeset: 833965:73cc8fb753b1
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Jul 19 05:09:34 2018 +0000

description:
Avoid using magic numbers for arguments of workqueue_create (NFC)

diffstat:

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

diffs (27 lines):

diff -r e4fb141e7dfd -r 73cc8fb753b1 sys/ufs/ffs/ffs_alloc.c
--- a/sys/ufs/ffs/ffs_alloc.c   Wed Jul 18 23:10:27 2018 +0000
+++ b/sys/ufs/ffs/ffs_alloc.c   Thu Jul 19 05:09:34 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_alloc.c,v 1.159 2017/12/07 21:53:41 chs Exp $      */
+/*     $NetBSD: ffs_alloc.c,v 1.160 2018/07/19 05:09:34 ozaki-r 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.159 2017/12/07 21:53:41 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.160 2018/07/19 05:09:34 ozaki-r Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -1641,7 +1641,7 @@
 
        ts = kmem_zalloc(sizeof (*ts), KM_SLEEP);
        error = workqueue_create(&ts->wq, "trimwq", ffs_discardcb, ts,
-                                0, 0, 0);
+                                PRI_USER, IPL_NONE, 0);
        if (error) {
                kmem_free(ts, sizeof (*ts));
                return NULL;



Home | Main Index | Thread Index | Old Index