---
name: "__d_drop"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/__d_drop"
---

# \_\_d\_drop(9)

drop a dentry

## NAME

\_\_d\_drop - drop a dentry

## SYNOPSIS

**void \_\_d\_drop(struct dentry \*** *dentry***);**

## ARGUMENTS

*dentry*

dentry to drop

## DESCRIPTION

**d\_drop** unhashes the entry from the parent dentry hashes, so that it won't be found through a VFS lookup any more. Note that this is different from deleting the dentry - d\_delete will try to mark the dentry negative if possible, giving a successful \_negative\_ lookup, while d\_drop will just make the cache lookup fail.

**d\_drop** is used mainly for stuff that wants to invalidate a dentry for some reason (NFS timeouts or autofs deletes).

\_\_d\_drop requires dentry-\>d\_lock.

## COPYRIGHT
