Skip to contentSkip to conversation

Proposal: Eliminate GFP_DMA

PATCH Matthew Wilcox 1 participant 1 message Feb 28, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I'm thinking about doing something along these lines:

include/linux/gfp.h 2003-02-27 17:24:39.000000000 -0600 renamed from include/linux/gfp.h 2003-02-24 13:05:13.000000000 -0600 +2 -5
@@ -26,11 +26,8 @@
 
-/* Flag - indicates that the buffer will be suitable for DMA.  Ignored on some
-   platforms, used as appropriate on others */
-
-#define GFP_DMA                __GFP_DMA
-
+#define GFP_ATOMIC_DMA (GFP_ATOMIC | __GFP_DMA)
+#define GFP_KERNEL_DMA (GFP_KERNEL | __GFP_DMA)
 

combined with changing some users to use __GFP_DMA if they really do mean the bitmask. Comments?

Signature · 3 lines
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk