Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/common/include/linux Fix inverted notion of...



details:   https://anonhg.NetBSD.org/src/rev/95a2eede73ad
branches:  trunk
changeset: 1028761:95a2eede73ad
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:58:02 2021 +0000

description:
Fix inverted notion of whether to wait for allocation


Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/common/include/linux/slab.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r bfd271740870 -r 95a2eede73ad sys/external/bsd/common/include/linux/slab.h
--- a/sys/external/bsd/common/include/linux/slab.h      Sun Dec 19 11:57:54 2021 +0000
+++ b/sys/external/bsd/common/include/linux/slab.h      Sun Dec 19 11:58:02 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: slab.h,v 1.4 2021/12/19 01:39:05 riastradh Exp $       */
+/*     $NetBSD: slab.h,v 1.5 2021/12/19 11:58:02 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -208,9 +208,9 @@
        void *ptr;
 
        if (gfp & __GFP_WAIT)
-               flags |= PR_NOWAIT;
+               flags |= PR_WAITOK;
        else
-               flags |= PR_WAITOK;
+               flags |= PR_NOWAIT;
 
        ptr = pool_cache_get(kc->kc_pool_cache, flags);
        if (ptr == NULL)



Home | Main Index | Thread Index | Old Index