Re: structure dentry help...

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Wed, 3 Nov 1999 14:42:18 +0100


Linus Torvalds wrote:
> You can do this already.

Very nice, thanks.

> Oh. And a final comment - I really don't think the above is necessarily
> a good idea. A lot of applications do more readdir() calls than they
> ever do lookups, and you might make readdir() slower by doing the dentry
> allocation with not enough gain at lookup time.

Indeed. It's only on very large directories that the lookup time is
important, because of the quadratic growth in search time. Perhaps a
heuristic is worth a look.

-- Jamie

-
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/