Re: [PATCH] dcache 2nd chance replacement

Linus Torvalds (torvalds@transmeta.com)
Wed, 3 Jan 2001 11:05:16 -0800 (PST)


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/