Messages in this thread Patch in this message | | | Date | Sun, 3 Oct 2004 19:28:10 +0100 (BST) | From | Hugh Dickins <> | Subject | [PATCH 6/6] vmtrunc: bug if page_mapped |
| |
If unmap_mapping_range (and mapping->truncate_count) are doing their jobs right, truncate_complete_page should never find the page mapped: add BUG_ON for our immediate testing, but this patch should probably not go to mainline - a mapped page here is not a catastrophe.
Unsigned-off-by: Hugh Dickins <hugh@veritas.com> ---
mm/truncate.c | 1 + 1 files changed, 1 insertion(+)
--- trunc5/mm/truncate.c 2004-10-02 18:22:29.000000000 +0100 +++ trunc6/mm/truncate.c 2004-10-03 16:37:39.677144808 +0100 @@ -45,6 +45,7 @@ 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/
| |