There are two special cases where this startegy is not good:
1) some procfs symlinks (they are *really* special and for them
follow_link() doesn't involve lookup_dentry() anyway). No problems - we
can simply keep the old mechanism for them.
2) NFS and friends. Can we cache the results of readlink() for them?
(provided that inode is still valid, of course). In principle we can do it
- symlinks are supposed to stay constant until they die. If the server is
running UNIX it should be OK, but what about NFS servers on VMS, NT and
other unpleasant animals? CODA probably is OK too (in the same degree as
NFS), but what about NCPFS?
Notice that I'm not talking about caching results of follow_link() - just
the (textual) contents of symlink.
Comments are more than welcome - I'ld like to convert NFS et. al. to the
new mechanism and remove the recursion in lookup_dentry() (kernel stack is
a scarce resource).
Cheers,
Al
-
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/