commit | 3dd2826698b6902aafd9441ce28ebb44735fd0d6 | [log] [tgz] |
---|---|---|
author | Mel Gorman <[email protected]> | Tue Jun 16 15:32:00 2009 -0700 |
committer | Linus Torvalds <[email protected]> | Tue Jun 16 19:47:33 2009 -0700 |
tree | c9bda4a84a0545d4acf41123072fd018100e63f8 | |
parent | 5117f45d11a9ee62d9b086f1312f3f31781ff155 [diff] |
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 <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Cc: Pekka Enberg <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Nick Piggin <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Lee Schermerhorn <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>