Hello. I want to obtain uid and gid of an inode using dentry->d_inode->i_uid. Do I need any locks when accessing dentry->d_inode for read only? The dentry is derived by path_lookup(). http://tomoyo.sourceforge.jp/cgi-bin/lxr/source/fs/realpath.c#L194 Also, I want to obtain uid and gid of its parent's inode using dentry->d_parent->d_inode->i_uid. Do I need dcache_lock when traversing dentry->d_parent just for 1 level (not up to mount point)? Regards. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/