Messages in this thread | | | Date | Sun, 20 Jun 1999 17:51:20 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: I discussed reading directories as files with jra, Stallman, and loic |
| |
On Sun, 20 Jun 1999, Alexander Viro wrote: > > Good. The only question being: why are we pushing the traditional symlinks > under the same roof? That's what makes me very uncomfortable. And it makes > lookup_dentry() pretty uncomfortable too - we got *way* too nasty > recursion there.
I much prefer recursion. Recursion is cheap and simple, and optimizes the right case. And we can (and do) easily limit it, so there is no real stack space issue, espcially as the lookup is pretty frugal when it comes to stack space anyway).
A lot of people think recursion is "nasty" - while in fact it's a very elegant way to do something that would otherwise be much uglier. So I think it's only right and proper to have symlinks be just another kind of wormhole. No special cases.
Linus
- 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/
| |