rmap: nonlinear truncation

From: Hugh Dickins
Date: Thu Apr 08 2004 - 08:53:17 EST


If you truncate the file beneath a nonlinear vma, your anon_vma
warns in __remove_from_page_cache then BUGs in page_referenced.
My anonmm leaves the pages unfreeable until the vma is unmapped.
pte_chains treats them as anonymous and can swap them out. None
of us is right (allocating swap violates strict commit accounting).
I think we need to fix nonlinear truncation properly at last, I'm
looking at Daniel's invalidate_mmap_range patch from a month ago,
to see if we can springboard off that.

Hugh

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