Re: invalidate_inode_pages in 2.5.32/3

From: Daniel Phillips (phillips@arcor.de)
Date: Sat Sep 07 2002 - 03:37:04 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 07 2002 - 22:00:31 EST