Re: 2.3.99-pre6-pre7 sync_page in remove_inode_page

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Thu Apr 27 2000 - 16:01:37 EST


>>>>> " " == Andrea Arcangeli <andrea@suse.de> 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.

Cheers,
  Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



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