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 linux: Allow GFP_NOWAI...
details: https://anonhg.NetBSD.org/src/rev/8face69988c3
branches: trunk
changeset: 1028850:8face69988c3
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:12:23 2021 +0000
description:
linux: Allow GFP_NOWAIT too.
diffstat:
sys/external/bsd/common/include/linux/slab.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r fbf312d9a09b -r 8face69988c3 sys/external/bsd/common/include/linux/slab.h
--- a/sys/external/bsd/common/include/linux/slab.h Sun Dec 19 12:12:15 2021 +0000
+++ b/sys/external/bsd/common/include/linux/slab.h Sun Dec 19 12:12:23 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: slab.h,v 1.8 2021/12/19 12:07:55 riastradh Exp $ */
+/* $NetBSD: slab.h,v 1.9 2021/12/19 12:12:23 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
* rather than allocate memory without respecting parameters we
* don't understand.
*/
- KASSERT((gfp == GFP_ATOMIC) ||
+ KASSERT((gfp == GFP_ATOMIC) || (gfp == GFP_NOWAIT) ||
((gfp & ~__GFP_WAIT) == (GFP_KERNEL & ~__GFP_WAIT)));
if (ISSET(gfp, __GFP_WAIT)) {
Home |
Main Index |
Thread Index |
Old Index