diff options
| author | Nick Piggin <[email protected]> | 2009-06-16 15:32:10 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-06-16 19:47:34 -0700 |
| commit | a3af9c389a7f3e675313f442fdd8c247c1cdb66b (patch) | |
| tree | 1ff17dc384d3bcfe82d27e3d05a35ff3b859652c /tools/perf/scripts/python | |
| parent | d395b73428d9748fb70b33477c9b2acae62f360a (diff) | |
page allocator: do not check for compound pages during the page allocator sanity checks
A number of sanity checks are made on each page allocation and free
including that the page count is zero. page_count() checks for compound
pages and checks the count of the head page if true. However, in these
paths, we do not care if the page is compound or not as the count of each
tail page should also be zero.
This patch makes two changes to the use of page_count() in the free path.
It converts one check of page_count() to a VM_BUG_ON() as the count should
have been unconditionally checked earlier in the free path. It also
avoids checking for compound pages.
[[email protected]: Wrote changelog]
Signed-off-by: Mel Gorman <[email protected]>
Signed-off-by: Nick Piggin <[email protected]>
Reviewed-by: Christoph Lameter <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Peter Zijlstra <[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]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions