[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-mm
Subject: [PATCH] mm/swap_stat.c
From: Thiago Rondon <maluco () mileniumnet ! com ! br>
Date: 2001-05-18 17:20:06
[Download RAW message or body]
Just change BUG to PAGE_BUG when necessary, Comments?
--- swap_state.c.orig Thu May 17 13:00:33 2001
+++ swap_state.c Thu May 17 13:01:30 2001
@@ -74,9 +74,9 @@
swap_cache_add_total++;
#endif
if (!PageLocked(page))
- BUG();
+ PAGE_BUG(page);
if (PageTestandSetSwapCache(page))
- BUG();
+ PAGE_BUG(page);
if (page->mapping)
BUG();
flags = page->flags & ~((1 << PG_error) | (1 << PG_arch_1));
@@ -122,7 +122,7 @@
void delete_from_swap_cache_nolock(struct page *page)
{
if (!PageLocked(page))
- BUG();
+ PAGE_BUG(bug);
if (block_flushpage(page, 0))
lru_cache_del(page);
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic