writepage() and readpage() will never be symmetric...
readpage()
program can't continue until data is there
reading in larger clusters eats (wastes?) more memory
done when we think a process needs data
writepage()
called after the process has written data and moved on
writing larger clusters has no influence on memory use
often done to free up memory
Since readpage() needs to tune readahead behaviour, we will
always want to give it some information (eg. in the file *)
so it can do the extra things it needs to do.
regards,
Rik
-- Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose...http://www.surriel.com/ http://www.conectiva.com/ http://distro.conectiva.com.br/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/