Re: invalidate_inode_pages in 2.5.32/3

Daniel Phillips
2002-09-07T09:57:04Z

On Friday 06 September 2002 03:08, Andrew Morton wrote:
> Should we be forcibly unmapping the pages from pagetables? That would
> result in them being faulted in again, and re-read.

There's no conceptual difficulty if it's a truncate. For NFS, maybe
the thing to do is hold ->sem long enough to do whatever dark magic
NFS needs?

> That might work. It's a bit of a hassle that ->releasepage() must
> be nonblocking, but generally it just wants to grab locks, decrement
> refcounts and free things.

Err. I really really wonder why the vfs is not supposed to know
about these goings on, to the extent of being able to take care of
them itself.

--
Daniel