linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* COW pages and FL_PUNCH_HOLE
@ 2017-12-05 15:34 Matthew Wilcox
       [not found] ` <20171205153401.GC28760-PfSpb0PWhxZc2C7mugBRk2EX/6BAtgUQ@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2017-12-05 15:34 UTC (permalink / raw)
  To: Linux API


I don't see a discussion of this anywhere ... and I thought linux-api was
the right place to ask.

I see holepunch as being "like ftruncate() but for the middle of the file".
So it feels weird to me that MAP_PRIVATE behaves differently; truncate
will rip out COWed pages, but holepunch won't.  Is there a good reason for
this behaviour, and is it too late to change?

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

end of thread, other threads:[~2017-12-05 17:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-05 15:34 COW pages and FL_PUNCH_HOLE Matthew Wilcox
     [not found] ` <20171205153401.GC28760-PfSpb0PWhxZc2C7mugBRk2EX/6BAtgUQ@public.gmane.org>
2017-12-05 17:24   ` Darrick J. Wong
2017-12-05 17:47     ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).