mm/mempool: warn about __GFP_ZERO usage
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Wed, 4 Jun 2014 23:07:00 +0000 (16:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:53:58 +0000 (16:53 -0700)
commit8bf8fcb07653fbaea74f96bba1e4ed0f851675ab
tree6412234c0fea986db2c88874221c42bf56c7acff
parent02a8efeda894d3541c7143ed818b25b299504190
mm/mempool: warn about __GFP_ZERO usage

Memory obtained via mempool_alloc is not always zeroed even when
called with __GFP_ZERO. Add a note and VM_BUG_ON statement to make
that clear.

[akpm@linux-foundation.org: use VM_WARN_ON_ONCE]
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempool.c