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 Define __GFP_RETRY_MAY...



details:   https://anonhg.NetBSD.org/src/rev/68540d268f1e
branches:  trunk
changeset: 1027981:68540d268f1e
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:24:43 2021 +0000

description:
Define __GFP_RETRY_MAYFAIL as an alias for __GFP_NORETRY.

diffstat:

 sys/external/bsd/common/include/linux/gfp.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 22193cc5dad8 -r 68540d268f1e sys/external/bsd/common/include/linux/gfp.h
--- a/sys/external/bsd/common/include/linux/gfp.h       Sun Dec 19 01:24:36 2021 +0000
+++ b/sys/external/bsd/common/include/linux/gfp.h       Sun Dec 19 01:24:43 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gfp.h,v 1.1 2018/08/27 15:45:06 riastradh Exp $        */
+/*     $NetBSD: gfp.h,v 1.2 2021/12/19 01:24:43 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -69,6 +69,13 @@
  */
 #define        __GFP_NOFAIL            0
 
+/*
+ * Pretend these are the same.  __GFP_RETRY_MAYFAIL is supposed to do
+ * more than just __GFP_NORETRY, but should not hang forever like
+ * __GFP_WAIT.
+ */
+#define        __GFP_RETRY_MAYFAIL     __GFP_NORETRY
+
 struct page;
 
 #endif /* _LINUX_GFP_H_ */



Home | Main Index | Thread Index | Old Index