* [PATCH] mm/swap_stat.c
@ 2001-05-18 17:20 Thiago Rondon
0 siblings, 0 replies; only message in thread
From: Thiago Rondon @ 2001-05-18 17:20 UTC (permalink / raw)
To: linux mm
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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-18 17:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-18 17:20 [PATCH] mm/swap_stat.c Thiago Rondon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox