Re: invalidate_inode_pages in 2.5.32/3

Rik van Riel
2002-09-12T23:19:00Z

On Thu, 12 Sep 2002, Andrew Morton wrote:
> Rik van Riel wrote:

> > invalidate_page(struct page * page) {

> That's the bottom-up approach. The top-down (vmtruncate) approach
> would also work, if the locking is suitable.

The top-down approach will almost certainly be most efficient when
invalidating a large chunk of a file (truncate, large file locks)
while the bottom-up approach is probably more efficient when the
system invalidates very few pages (small file lock, cluster file
system mmap() support).

regards,

Rik
--
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/ http://distro.conectiva.com/

Spamtraps of the month: september@surriel.com trac@trac.org