mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* rmap: nonlinear truncation
@ 2004-04-08 13:51 Hugh Dickins
  2004-04-08 15:28 ` Andrea Arcangeli
  0 siblings, 1 reply; 3+ messages in thread
From: Hugh Dickins @ 2004-04-08 13:51 UTC (permalink / raw)
  To: Andrea Arcangeli; +Cc: linux-kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-08 18:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-08 13:51 rmap: nonlinear truncation Hugh Dickins
2004-04-08 15:28 ` Andrea Arcangeli
2004-04-08 18:10   ` Andrea Arcangeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®