mm/slab: make cache_grow() handle the page allocated on arbitrary node
authorJoonsoo Kim <[email protected]>
Fri, 20 May 2016 00:10:23 +0000 (17:10 -0700)
committerLinus Torvalds <[email protected]>
Fri, 20 May 2016 02:12:14 +0000 (19:12 -0700)
commit511e3a05881221a7fc63e36f3d604887040fc845
treefcca17d123d2af17f852df8acf1e4f6a94e5b4f0
parent03d1d43a1262b347a9aa814980438fff8eb32edc
mm/slab: make cache_grow() handle the page allocated on arbitrary node

Currently, cache_grow() assumes that allocated page's nodeid would be
same with parameter nodeid which is used for allocation request.  If we
discard this assumption, we can handle fallback_alloc() case gracefully.
So, this patch makes cache_grow() handle the page allocated on arbitrary
node and clean-up relevant code.

Signed-off-by: Joonsoo Kim <[email protected]>
Cc: Jesper Dangaard Brouer <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slab.c