Skip to contentSkip to conversation

redundant BAD_RANGE check?

PATCH James Manning 1 participant 1 message Jun 20, 2000

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Given that expand() appears to do its own BAD_RANGE check, it looks unnecessary to check it again in rmqueue.

James

mm/page_alloc.c renamed from mm/page_alloc.c.orig +0 -2
@@ -203,8 +203,6 @@
 			spin_unlock_irqrestore(&zone->lock, flags);
 
 			set_page_count(page, 1);
-			if (BAD_RANGE(zone,page))
-				BUG();
 			return page;	
 		}
 		curr_order++;