It's time to remove truncate_complete_page's BUG_ON(page_mapped(page)):
it was there to give confidence in the new vm_truncate_count mechanism.
Earlier releases had no such check, and it wouldn't be at all helpful
if it ever bugged up file truncation on a production system - though
we don't know of any scenario in which that could happen now.

Signed-off-by: Hugh Dickins <[EMAIL PROTECTED]>

--- 2.6.11-rc3/mm/truncate.c    2005-02-03 09:06:16.000000000 +0000
+++ linux/mm/truncate.c 2005-02-03 17:26:40.000000000 +0000
@@ -45,7 +45,6 @@ static inline void truncate_partial_page
 static void
 truncate_complete_page(struct address_space *mapping, struct page *page)
 {
-       BUG_ON(page_mapped(page));
        if (page->mapping != mapping)
                return;
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to