Re: dentry question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux