diff options
author | Gavin Shan <[email protected]> | 2012-12-18 14:21:32 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-12-18 15:02:12 -0800 |
commit | 0bb2c7637ef0db4f44528698fa725179fb4917ad (patch) | |
tree | 5bc0fdbd68805f8cc4a2b2c44a9d48ade1e59685 /lib/mpi/mpi-cmp.c | |
parent | 3012d60b39761b0bf73e3be677d2f8e424f0b294 (diff) |
mm/page_alloc.c: remove duplicate check
While allocating pages using buddy allocator, the compound page is
probably split up to free pages. Under these circumstances, the compound
page should be destroyed by destroy_compound_page(). However, there is a
duplicate check to judge if the page is compound.
Remove the duplicate check since the compound_order() returns 0 when the
page doesn't have PG_head set in destroy_compound_page(). That is to say,
destroy_compound_page() needn't check PageHead().
Signed-off-by: Gavin Shan <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Pekka Enberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions