Re: Memory mapped files question

From: Martin J. Bligh (mbligh@aracnet.com)
Date: Mon Apr 14 2003 - 10:04:49 EST


> Martin, something which was not mentioned last week (I've just checked).
>
> It's OK if we never write to disk unless explicitely told, but will we writeback
> when we munmap?

Don't know for sure - you'd have to read the code (do_munmap) ... I couldn't
see anything there at a quick glance. However, I'd guess we don't write it,
as multiple people could have the file mapped, or we could remap it
again from somewhere. Presumably the standard LRU will just flush it out.

M.

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



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:30 EST