Re: [Ext2-devel] Re: [RFC] ext2_new_block() behaviour

From: Alexander Viro (viro@math.psu.edu)
Date: Thu Jan 04 2001 - 00:06:00 EST


On Wed, 3 Jan 2001, Oliver Xymoron wrote:

> On Wed, 3 Jan 2001, Alexander Viro wrote:
>
> > On Wed, 3 Jan 2001, Stephen C. Tweedie wrote:
> >
> > > Having preallocated blocks allocated immediately is deliberate:
> > > directories grow slowly and remain closed most of the time, so the
> > > normal preallocation regime of only preallocating open files and
> > > discarding preallocation on close just doesn't work.
> >
> > Erm. For directories we would not have the call of discard_prealloc()
> > on close(2) - they have NULL ->release() anyway and for them it would
> > happen only on ext2_put_inode(), i.e. upon the final dput(). Which would
> > not happen while some descendent would stay in dcache.
>
> I bet it long predates dcache though..

Not too likely. <checking CVS> It went in in 2.1.93. Apr 2 1998...
Dcache was there ~50 versions before that.

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



This archive was generated by hypermail 2b29 : Sun Jan 07 2001 - 21:00:17 EST