Messages in this thread | | | Subject | Re: [PATCH] [Request for inclusion] Filesystem in Userspace | From | Miklos Szeredi <> | Date | Thu, 18 Nov 2004 18:28:29 +0100 |
| |
> 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/
| |