1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>__d_drop</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="the_directory_cache.html" title="The Directory Cache"><link rel="prev" href="the_directory_cache.html" title="The Directory Cache"><link rel="next" href="API-shrink-dcache-sb.html" title="shrink_dcache_sb"></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"><span class="phrase">__d_drop</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="the_directory_cache.html">Prev</a>&#160;</td><th width="60%" align="center">The Directory Cache</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-shrink-dcache-sb.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API---d-drop"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>__d_drop &#8212; 
2  drop a dentry
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">__d_drop </b>(</code></td><td>struct dentry * <var class="pdparam">dentry</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1098624132"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dentry</code></em></span></dt><dd><p>
4     dentry to drop
5    </p></dd></dl></div></div><div class="refsect1"><a name="idp1098625708"></a><h2>Description</h2><p>
6   <code class="function">d_drop</code> unhashes the entry from the parent dentry hashes, so that it won't
7   be found through a VFS lookup any more. Note that this is different from
8   deleting the dentry - d_delete will try to mark the dentry negative if
9   possible, giving a successful _negative_ lookup, while d_drop will
10   just make the cache lookup fail.
11   </p><p>
12
13   <code class="function">d_drop</code> is used mainly for stuff that wants to invalidate a dentry for some
14   reason (NFS timeouts or autofs deletes).
15   </p><p>
16
17   __d_drop requires dentry-&gt;d_lock.
18</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="the_directory_cache.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="the_directory_cache.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-shrink-dcache-sb.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">The Directory Cache&#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">shrink_dcache_sb</span></td></tr></table></div></body></html>
19