aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r--fs/proc/base.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 593e7c5ddb49..f2637c972160 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -1621,6 +1621,15 @@ int pid_revalidate(struct dentry *dentry, unsigned int flags)
1621 return 0; 1621 return 0;
1622} 1622}
1623 1623
1624int pid_delete_dentry(const struct dentry *dentry)
1625{
1626 /* Is the task we represent dead?
1627 * If so, then don't put the dentry on the lru list,
1628 * kill it immediately.
1629 */
1630 return !proc_pid(dentry->d_inode)->tasks[PIDTYPE_PID].first;
1631}
1632
1624const struct dentry_operations pid_dentry_operations = 1633const struct dentry_operations pid_dentry_operations =
1625{ 1634{
1626 .d_revalidate = pid_revalidate, 1635 .d_revalidate = pid_revalidate,