1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>The Directory Cache</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Filesystems API"><link rel="up" href="vfs.html" title="Chapter&#160;1.&#160;The Linux VFS"><link rel="prev" href="API-inode-inc-iversion.html" title="inode_inc_iversion"><link rel="next" href="API---d-drop.html" title="__d_drop"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">The Directory Cache</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-inode-inc-iversion.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;1.&#160;The Linux VFS</th><td width="20%" align="right">&#160;<a accesskey="n" href="API---d-drop.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="the_directory_cache"></a>The Directory Cache</h2></div></div></div><div class="toc"><dl class="toc"><dt><span class="refentrytitle"><a href="API---d-drop.html"><span class="phrase">__d_drop</span></a></span><span class="refpurpose"> &#8212; 
2  drop a dentry
3 </span></dt><dt><span class="refentrytitle"><a href="API-shrink-dcache-sb.html"><span class="phrase">shrink_dcache_sb</span></a></span><span class="refpurpose"> &#8212; 
4     shrink dcache for a superblock
5 </span></dt><dt><span class="refentrytitle"><a href="API-have-submounts.html"><span class="phrase">have_submounts</span></a></span><span class="refpurpose"> &#8212; 
6     check for mounts over a dentry
7 </span></dt><dt><span class="refentrytitle"><a href="API-shrink-dcache-parent.html"><span class="phrase">shrink_dcache_parent</span></a></span><span class="refpurpose"> &#8212; 
8     prune dcache
9 </span></dt><dt><span class="refentrytitle"><a href="API-d-invalidate.html"><span class="phrase">d_invalidate</span></a></span><span class="refpurpose"> &#8212; 
10     detach submounts, prune dcache, and drop
11 </span></dt><dt><span class="refentrytitle"><a href="API-d-alloc.html"><span class="phrase">d_alloc</span></a></span><span class="refpurpose"> &#8212; 
12     allocate a dcache entry
13 </span></dt><dt><span class="refentrytitle"><a href="API-d-alloc-pseudo.html"><span class="phrase">d_alloc_pseudo</span></a></span><span class="refpurpose"> &#8212; 
14     allocate a dentry (for lookup-less filesystems)
15 </span></dt><dt><span class="refentrytitle"><a href="API-d-instantiate.html"><span class="phrase">d_instantiate</span></a></span><span class="refpurpose"> &#8212; 
16     fill in inode information for a dentry
17 </span></dt><dt><span class="refentrytitle"><a href="API-d-instantiate-no-diralias.html"><span class="phrase">d_instantiate_no_diralias</span></a></span><span class="refpurpose"> &#8212; 
18     instantiate a non-aliased dentry
19 </span></dt><dt><span class="refentrytitle"><a href="API-d-find-any-alias.html"><span class="phrase">d_find_any_alias</span></a></span><span class="refpurpose"> &#8212; 
20     find any alias for a given inode
21 </span></dt><dt><span class="refentrytitle"><a href="API-d-obtain-alias.html"><span class="phrase">d_obtain_alias</span></a></span><span class="refpurpose"> &#8212; 
22     find or allocate a DISCONNECTED dentry for a given inode
23 </span></dt><dt><span class="refentrytitle"><a href="API-d-obtain-root.html"><span class="phrase">d_obtain_root</span></a></span><span class="refpurpose"> &#8212; 
24     find or allocate a dentry for a given inode
25 </span></dt><dt><span class="refentrytitle"><a href="API-d-add-ci.html"><span class="phrase">d_add_ci</span></a></span><span class="refpurpose"> &#8212; 
26     lookup or allocate new dentry with case-exact name
27 </span></dt><dt><span class="refentrytitle"><a href="API-d-lookup.html"><span class="phrase">d_lookup</span></a></span><span class="refpurpose"> &#8212; 
28     search for a dentry
29 </span></dt><dt><span class="refentrytitle"><a href="API-d-hash-and-lookup.html"><span class="phrase">d_hash_and_lookup</span></a></span><span class="refpurpose"> &#8212; 
30     hash the qstr then search for a dentry
31 </span></dt><dt><span class="refentrytitle"><a href="API-d-delete.html"><span class="phrase">d_delete</span></a></span><span class="refpurpose"> &#8212; 
32     delete a dentry
33 </span></dt><dt><span class="refentrytitle"><a href="API-d-rehash.html"><span class="phrase">d_rehash</span></a></span><span class="refpurpose"> &#8212; 
34     add an entry back to the hash
35 </span></dt><dt><span class="refentrytitle"><a href="API-dentry-update-name-case.html"><span class="phrase">dentry_update_name_case</span></a></span><span class="refpurpose"> &#8212; 
36     update case insensitive dentry with a new name
37 </span></dt><dt><span class="refentrytitle"><a href="API-d-splice-alias.html"><span class="phrase">d_splice_alias</span></a></span><span class="refpurpose"> &#8212; 
38     splice a disconnected dentry into the tree if one exists
39 </span></dt><dt><span class="refentrytitle"><a href="API-d-path.html"><span class="phrase">d_path</span></a></span><span class="refpurpose"> &#8212; 
40     return the path of a dentry
41 </span></dt><dt><span class="refentrytitle"><a href="API-d-add.html"><span class="phrase">d_add</span></a></span><span class="refpurpose"> &#8212; 
42  add dentry to hash queues
43 </span></dt><dt><span class="refentrytitle"><a href="API-d-add-unique.html"><span class="phrase">d_add_unique</span></a></span><span class="refpurpose"> &#8212; 
44     add dentry to hash queues without aliasing
45 </span></dt><dt><span class="refentrytitle"><a href="API-dget-dlock.html"><span class="phrase">dget_dlock</span></a></span><span class="refpurpose"> &#8212; 
46     get a reference to a dentry
47 </span></dt><dt><span class="refentrytitle"><a href="API-d-unhashed.html"><span class="phrase">d_unhashed</span></a></span><span class="refpurpose"> &#8212; 
48     is dentry hashed
49 </span></dt><dt><span class="refentrytitle"><a href="API-d-really-is-negative.html"><span class="phrase">d_really_is_negative</span></a></span><span class="refpurpose"> &#8212; 
50     Determine if a dentry is really negative (ignoring fallthroughs)
51 </span></dt><dt><span class="refentrytitle"><a href="API-d-really-is-positive.html"><span class="phrase">d_really_is_positive</span></a></span><span class="refpurpose"> &#8212; 
52     Determine if a dentry is really positive (ignoring fallthroughs)
53 </span></dt><dt><span class="refentrytitle"><a href="API-d-inode.html"><span class="phrase">d_inode</span></a></span><span class="refpurpose"> &#8212; 
54     Get the actual inode of this dentry
55 </span></dt><dt><span class="refentrytitle"><a href="API-d-inode-rcu.html"><span class="phrase">d_inode_rcu</span></a></span><span class="refpurpose"> &#8212; 
56     Get the actual inode of this dentry with <code class="function">ACCESS_ONCE</code>
57 </span></dt><dt><span class="refentrytitle"><a href="API-d-backing-inode.html"><span class="phrase">d_backing_inode</span></a></span><span class="refpurpose"> &#8212; 
58     Get upper or lower inode we should be using
59 </span></dt><dt><span class="refentrytitle"><a href="API-d-backing-dentry.html"><span class="phrase">d_backing_dentry</span></a></span><span class="refpurpose"> &#8212; 
60     Get upper or lower dentry we should be using
61 </span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-inode-inc-iversion.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="vfs.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API---d-drop.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">inode_inc_iversion</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">__d_drop</span></td></tr></table></div></body></html>
62