diff options
author | Mel Gorman <mel@csn.ul.ie> | 2009-06-16 15:32:00 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-16 19:47:33 -0700 |
commit | 3dd2826698b6902aafd9441ce28ebb44735fd0d6 (patch) | |
tree | c9bda4a84a0545d4acf41123072fd018100e63f8 /lib/textsearch.c | |
parent | 5117f45d11a9ee62d9b086f1312f3f31781ff155 (diff) | |
download | blackbird-op-linux-3dd2826698b6902aafd9441ce28ebb44735fd0d6.tar.gz blackbird-op-linux-3dd2826698b6902aafd9441ce28ebb44735fd0d6.zip |
page allocator: calculate the migratetype for allocation only once
GFP mask is converted into a migratetype when deciding which pagelist to
take a page from. However, it is happening multiple times per allocation,
at least once per zone traversed. Calculate it once.
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Dave Hansen <dave@linux.vnet.ibm.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/textsearch.c')
0 files changed, 0 insertions, 0 deletions