]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "mm: fail GFP_DMA allocations when ZONE_DMA is not configured"
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jun 2011 21:11:24 +0000 (06:11 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jun 2011 21:11:24 +0000 (06:11 +0900)
commit1981e8afde848cb23fcf84c50b8e9b8817907f73
tree7318c8602f61c2052df308920bd681539f760555
parentc9c3088a7717af81b4956efd395a91274cfc47ea
Revert "mm: fail GFP_DMA allocations when ZONE_DMA is not configured"

This reverts commit 7f2f31ba63701b344d3ca99991f9b72ccd4bbc99.

As rmk says:
 "Commit 7f2f31ba6370 (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>
mm/page_alloc.c