Re: 2.3.99-pre6-pre7 sync_page in remove_inode_page

From: Trond Myklebust (
Date: Thu Apr 27 2000 - 16:01:37 EST

>>>>> " " == Andrea Arcangeli <> writes:

> Could you explain me why NFS needs invalidate_inode_pages()? Is
> the cache of the inodes supposed to be completly trimmed once
> we return from such call? invalidate_inode_pages isn't safe
> with mapped pages and there must be some highlevel design
> enforcement while calling it.

We need invalidate_inode_pages() because the server can at any time
change the file, thus invalidating the page cache. If this happens, we
want to throw out all unlocked pages as soon as possible, since we
cannot guarantee that they are up to date.

The NFS writeback stuff guarantees that any pending writebacks get
sent off anyway.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:13 EST