Re: dentry list structures?

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

 



On Wed, Jun 19, 2002 at 10:19:08AM +0800, Ian Kent wrote:
> I cannot work out the linked list structure of the dentry structure
> list.h fields. Does anyone hnow how the structure of these lists?
> Also the same for the vfsmount struct?

The struct list_head fields are _always_ doubli linked circular lists
with head. As for struct dentry, there are:
d_hash - this is entry, head is bucket in global dentry cache hash.
d_lru - this is entry, head is dcache LRU list.
d_child - this is entry, head is parent's d_subdirs.
d_subdirs - this is head, entries are children's d_child.
d_alias - this is entry, head is inodes i_dentry.

I didn't use vfsmount structs yet, but mnt_hash is entry for global hash
and mnt_mounts/mnt_child is a head resp. entry for list of children
(mounts in a subtree).

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
--
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