From: Andrew Morton <akpm@zip.com.au> To: lkml <linux-kernel@vger.kernel.org> Subject: aa-190-block_flushpage_check Date: Tue, 19 Mar 2002 20:02:54 -0800 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/