Re: invalidate_inode_pages in 2.5.32/3

Andrew Morton
2002-09-07T15:51:16Z

Daniel Phillips wrote:
>
> > 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.

->releasepage() was originally added for ext3, which has additional
ordering constraints, and has additional references to the page's
blocks.

reiserfs has a releasepage in 2.5. XFS has a ->releasepage.