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 gfpflags_allow_blocking
details: https://anonhg.NetBSD.org/src/rev/585f6b588568
branches: trunk
changeset: 1028440:585f6b588568
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:03:32 2021 +0000
description:
gfpflags_allow_blocking
diffstat:
sys/external/bsd/common/include/linux/gfp.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 869edf92b359 -r 585f6b588568 sys/external/bsd/common/include/linux/gfp.h
--- a/sys/external/bsd/common/include/linux/gfp.h Sun Dec 19 11:03:25 2021 +0000
+++ b/sys/external/bsd/common/include/linux/gfp.h Sun Dec 19 11:03:32 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gfp.h,v 1.2 2021/12/19 01:24:43 riastradh Exp $ */
+/* $NetBSD: gfp.h,v 1.3 2021/12/19 11:03:32 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -78,4 +78,10 @@
struct page;
+static inline bool
+gfpflags_allow_blocking(gfp_t gfp)
+{
+ return (gfp & (__GFP_WAIT|__GFP_NORETRY)) == __GFP_WAIT;
+}
+
#endif /* _LINUX_GFP_H_ */
Home |
Main Index |
Thread Index |
Old Index