---
name: "check_submounts_and_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/check_submounts_and_drop"
---

# check\_submounts\_and\_drop(9)

prune dcache, check for submounts and drop

## NAME

check\_submounts\_and\_drop - prune dcache, check for submounts and drop

## SYNOPSIS

**int check\_submounts\_and\_drop(struct dentry \*** *dentry***);**

## ARGUMENTS

*dentry*

dentry to prune and drop

## DESCRIPTION

All done as a single atomic operation relative to **has\_unlinked\_ancestor**. Returns 0 if successfully unhashed *parent*. If there were submounts then return -EBUSY.

## COPYRIGHT
