aa-190-block_flushpage_check

From: Andrew Morton (akpm@zip.com.au)
Date: Tue Mar 19 2002 - 23:02:54 EST


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;
 

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Mar 23 2002 - 22:00:20 EST