public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* aa-190-block_flushpage_check
@ 2002-03-20  4:02 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2002-03-20  4:02 UTC (permalink / raw)
  To: lkml



bugcheck.  It's needed - if the page had locked buffers here we'd do a
lock_buffer() inside spinlock.

=====================================

--- 2.4.19-pre3/mm/swap_state.c~aa-190-block_flushpage_check	Tue Mar 19 19:49:04 2002
+++ 2.4.19-pre3-akpm/mm/swap_state.c	Tue Mar 19 19:49:04 2002
@@ -117,7 +117,9 @@ void delete_from_swap_cache(struct page 
 	if (!PageLocked(page))
 		BUG();
 
-	block_flushpage(page, 0);
+	if (!block_flushpage(page, 0))
+		/* an anonymous page cannot have page->buffers set */
+		BUG();
 
 	entry.val = page->index;
 

-

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-20  4:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-20  4:02 aa-190-block_flushpage_check Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox