lkml.org 
[lkml]   [2004]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] [Request for inclusion] Filesystem in Userspace
From
Date
> A normal write is a VFS write() call, I assume.  While they're going 
> through the page cache, the pages are dirty, right? Is it possible that
> FUSE needs more real memory after dirtying those pages in order to finish
> cleaning them?

It's possible, but I don't see why that's a problem. If it can get
more memory it's OK. If allocation fails, then the write() will fail
with ENOMEM, if OOM killer get's to work and kills the FUSE process,
then write will return with ENOTCONN or something like that.

> What about the 3rd case: private writable mapping? How does that work?

That only reads pages and never writes them. It's just like malloc,
but prefilled with the file contents.

Miklos
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:08    [from the cache]
©2003-2011 Jasper Spaans