Locks for reading dentry->d_inode->i_uid?

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

 



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/


[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