Skip to content

Commit 1fa7b6a

Browse files
committed
Revert "mm: fail GFP_DMA allocations when ZONE_DMA is not configured"
This reverts commit a197b59. As rmk says: "Commit a197b59 (mm: fail GFP_DMA allocations when ZONE_DMA is not configured) is causing regressions on ARM with various drivers which use GFP_DMA. The behaviour up until now has been to silently ignore that flag when CONFIG_ZONE_DMA is not enabled, and to allocate from the normal zone. However, as a result of the above commit, such allocations now fail which causes drivers to fail. These are regressions compared to the previous kernel version." so just revert it. Requested-by: Russell King <linux@arm.linux.org.uk> Acked-by: Andrew Morton <akpm@linux-foundation.org> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f0f52a9 commit 1fa7b6a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mm/page_alloc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2247,10 +2247,6 @@ __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order,
22472247

22482248
if (should_fail_alloc_page(gfp_mask, order))
22492249
return NULL;
2250-
#ifndef CONFIG_ZONE_DMA
2251-
if (WARN_ON_ONCE(gfp_mask & __GFP_DMA))
2252-
return NULL;
2253-
#endif
22542250

22552251
/*
22562252
* Check the zones suitable for the gfp_mask contain at least one

0 commit comments

Comments
 (0)