[PATCH] Exterminate PAGE_BUG
Remove PAGE_BUG - repalce it with BUG and BUG_ON. Signed-off-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
c8538a7aa5
commit
cd7619d6bf
+1
-2
@@ -123,8 +123,7 @@ void remove_from_page_cache(struct page *page)
|
||||
{
|
||||
struct address_space *mapping = page->mapping;
|
||||
|
||||
if (unlikely(!PageLocked(page)))
|
||||
PAGE_BUG(page);
|
||||
BUG_ON(!PageLocked(page));
|
||||
|
||||
write_lock_irq(&mapping->tree_lock);
|
||||
__remove_from_page_cache(page);
|
||||
|
||||
Reference in New Issue
Block a user