lkml.org 
[lkml]   [2005]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] remove truncate mapped BUG
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 <hugh@veritas.com>

--- 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 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/
\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.153 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site