Module Name: src Committed By: christos Date: Thu Nov 9 21:57:06 UTC 2017
Modified Files: src/sys/kern: subr_extent.c Log Message: don't pass 0 to the pool flags To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/sys/kern/subr_extent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/subr_extent.c diff -u src/sys/kern/subr_extent.c:1.85 src/sys/kern/subr_extent.c:1.86 --- src/sys/kern/subr_extent.c:1.85 Mon Sep 18 09:22:56 2017 +++ src/sys/kern/subr_extent.c Thu Nov 9 16:57:06 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_extent.c,v 1.85 2017/09/18 13:22:56 jakllsch Exp $ */ +/* $NetBSD: subr_extent.c,v 1.86 2017/11/09 21:57:06 christos Exp $ */ /*- * Copyright (c) 1996, 1998, 2007 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: subr_extent.c,v 1.85 2017/09/18 13:22:56 jakllsch Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_extent.c,v 1.86 2017/11/09 21:57:06 christos Exp $"); #ifdef _KERNEL #ifdef _KERNEL_OPT @@ -175,7 +175,7 @@ extent_alloc_region_descriptor(struct ex } alloc: - rp = pool_get(&expool, (flags & EX_WAITOK) ? PR_WAITOK : 0); + rp = pool_get(&expool, (flags & EX_WAITOK) ? PR_WAITOK : PR_NOWAIT); if (rp != NULL) rp->er_flags = ER_ALLOC;