public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Q about pagecache data never written to disk
@ 2004-09-05  8:01 Andrey Savochkin
  2004-09-05  9:22 ` William Lee Irwin III
  2004-09-05 10:52 ` Andrew Morton
  0 siblings, 2 replies; 17+ messages in thread
From: Andrey Savochkin @ 2004-09-05  8:01 UTC (permalink / raw)
  To: linux-kernel

Let's suppose an mmap'ed (SHARED, RW) file has a hole.
AFAICS, we allow to dirty the file pages without allocating the space for the
hole - filemap_nopage just "reads" the page filling it with zeroes, and
nothing is done about the on-disk data until writepage.

So, if the page can't be written to disk (no space), the dirty data just
stays in the pagecache.  The data can be read or seen via mmap, but it isn't
and never be on disk.  The pagecache stays unsynchronized with the on-disk
content forever.

Is it the intended behavior?
Shouldn't we call the filesystem to fill the hole at the moment of the first
write access?

	Andrey

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

end of thread, other threads:[~2004-09-09 17:45 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-05  8:01 Q about pagecache data never written to disk Andrey Savochkin
2004-09-05  9:22 ` William Lee Irwin III
2004-09-05 10:52 ` Andrew Morton
2004-09-05 11:43   ` Andrey Savochkin
2004-09-05 21:00     ` Andrew Morton
2004-09-06  7:06       ` Andrey Savochkin
2004-09-09 12:39       ` Pavel Machek
2004-09-09 13:15         ` Nick Piggin
2004-09-09 13:37           ` Pavel Machek
2004-09-09 13:32             ` Nick Piggin
2004-09-09 17:24               ` William Lee Irwin III
2004-09-09 17:14                 ` Nick Piggin
2004-09-09 17:35                   ` William Lee Irwin III
2004-09-05 16:33   ` William Lee Irwin III
2004-09-06  6:24     ` William Lee Irwin III
2004-09-06  7:02       ` Andrew Morton
2004-09-06 15:12         ` William Lee Irwin III

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