On Sat, Oct 27, 2001 at 04:06:05PM +0200, Boris Dragovic wrote: > > hi, > when going 'back' through dentries using dentry->d_parent how do I now > when I hit root? is it when dentry->d_parent == dentry? Yes. Look at the IS_ROOT macro in <linux/dcache.h> that does exactly that. For sake of cleaner code I'd like to suggest to use that macro. Christoph -- Of course it doesn't work. We've performed a software upgrade. - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/