Re: (reiserfs) Re: New Linux 2.5 - 2.6 TODO (Alan Cox suggestsdelaying

From: Hans Reiser (hans@reiser.to)
Date: Tue Jun 06 2000 - 12:11:03 EST


"Stephen C. Tweedie" wrote:
>
> Hi,
>
> On Tue, Jun 06, 2000 at 12:50:37PM +0100, Alan Cox wrote:
> > > I would have used a global hook (register_memory_pressure_handler())
> > > Hmm, ok a super block vector would do too, but the global hook would
> > > be probably useful for other things too (e.g. networking could use it for
> > > its skb caches). Block device interface has nothing to do with the VFS
> > > imho (you may be using a different definition of VFS than me tho)
> >
> > A notifier chain seems the obvious thing to use for it then ?
>
> An address_space operations method seems the most obvious way. As
> long as the pages concerned are in the page cache, the address_space
> ops can be called in shrink_mmap as a hint that the filesystem needs
> to start doing something to reclaim space.
>
> --Stephen

I agree, actually, I think Stephen and I have been agreeing on this topic for
about a year but we haven't had a code patch come into existence. Zam is
debugging code to do this for reiserfs using generalized hooks he wrote. He
made it a VFS operation, but making it an address space operation will probably
take him an hour to code. It is a trivial amount of code which is outside of
reiserfs.... I think he missed 2.4, but perhaps he can share with you and Chris
(and me actually) the exact code stubs he puts in for this.

Hans

-
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 : Wed Jun 07 2000 - 21:00:26 EST