---
name: "d_invalidate"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/d_invalidate"
---

# d\_invalidate(9)

detach submounts, prune dcache, and drop

## NAME

d\_invalidate - detach submounts, prune dcache, and drop

## SYNOPSIS

**void d\_invalidate(struct dentry \*** *dentry***);**

## ARGUMENTS

*dentry*

dentry to invalidate (aka detach, prune and drop)

## DESCRIPTION

no dcache lock.

The final d\_drop is done as an atomic operation relative to rename\_lock ensuring there are no races with d\_set\_mounted. This ensures there are no unhashed dentries on the path to a mountpoint.

## COPYRIGHT
