Re: [PATCH] dcache 2nd chance replacement

From: Linus Torvalds (torvalds@transmeta.com)
Date: Wed Jan 03 2001 - 14:05:16 EST


On Wed, 3 Jan 2001, Rik van Riel wrote:
>
> I rediffed this trivial patch by Andrea (that went
> into 2.2.19-pre5) which adds 2nd chance replacement
> to the dentry cache, this should make our dcache
> behave a little bit better than the current FIFO.

Looks ok, but I'd be happier if the

        dentry->d_flags |= DCACHE_REFERENCED;

line would be inside the dcache lock (ie just move it up a line).

                Linus

-
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:16 EST