mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] Exterminate PAGE_BUG
Remove PAGE_BUG - repalce it with BUG and BUG_ON. Signed-off-by: Matt Mackall <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
c8538a7aa5
commit
cd7619d6bf
10 changed files with 10 additions and 37 deletions
|
|
@ -92,8 +92,7 @@ static unsigned long __get_small_page(int priority, struct order *order)
|
|||
page = list_entry(order->queue.next, struct page, lru);
|
||||
again:
|
||||
#ifdef PEDANTIC
|
||||
if (USED_MAP(page) & ~order->all_used)
|
||||
PAGE_BUG(page);
|
||||
BUG_ON(USED_MAP(page) & ~order->all_used);
|
||||
#endif
|
||||
offset = ffz(USED_MAP(page));
|
||||
SET_USED(page, offset);
|
||||
|
|
@ -141,8 +140,7 @@ static void __free_small_page(unsigned long spage, struct order *order)
|
|||
goto non_small;
|
||||
|
||||
#ifdef PEDANTIC
|
||||
if (USED_MAP(page) & ~order->all_used)
|
||||
PAGE_BUG(page);
|
||||
BUG_ON(USED_MAP(page) & ~order->all_used);
|
||||
#endif
|
||||
|
||||
spage = spage >> order->shift;
|
||||
|
|
|
|||
Loading…
Reference in a new issue