mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] mm: page_alloc less atomics
More atomic operation removal from page allocator Signed-off-by: Nick Piggin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
674539115c
commit
5e9dace8d3
2 changed files with 4 additions and 4 deletions
|
|
@ -190,7 +190,7 @@ static void prep_compound_page(struct page *page, unsigned long order)
|
|||
for (i = 0; i < nr_pages; i++) {
|
||||
struct page *p = page + i;
|
||||
|
||||
SetPageCompound(p);
|
||||
__SetPageCompound(p);
|
||||
set_page_private(p, (unsigned long)page);
|
||||
}
|
||||
}
|
||||
|
|
@ -209,7 +209,7 @@ static void destroy_compound_page(struct page *page, unsigned long order)
|
|||
if (unlikely(!PageCompound(p) |
|
||||
(page_private(p) != (unsigned long)page)))
|
||||
bad_page(page);
|
||||
ClearPageCompound(p);
|
||||
__ClearPageCompound(p);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue