]> git.baikalelectronics.ru Git - kernel.git/commit
mm: bootmem: split out goal-to-node mapping from goal dropping
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 29 May 2012 22:06:33 +0000 (15:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:21 +0000 (16:22 -0700)
commitc85f8369a9f17ff03ef57541120e42e712f145b6
treeefe963c9536fe306380dd01d135daaf00f2c5154
parentb38c9a744df0a5b62f9085249884d854dc11b4d1
mm: bootmem: split out goal-to-node mapping from goal dropping

Matching the desired goal to the right node is one thing, dropping the
goal when it can not be satisfied is another.  Split this into separate
functions so that subsequent patches can use the node-finding but drop and
handle the goal fallback on their own terms.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/bootmem.c