From 76bf6665d009b563bc64ac77f1d94723503da467 Mon Sep 17 00:00:00 2001 From: braam Date: Tue, 2 Apr 2002 16:33:31 +0000 Subject: [PATCH] - part one of prune fix. --- lustre/include/linux/lustre_mds.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lustre/include/linux/lustre_mds.h b/lustre/include/linux/lustre_mds.h index 764ef33..3f445e8 100644 --- a/lustre/include/linux/lustre_mds.h +++ b/lustre/include/linux/lustre_mds.h @@ -34,9 +34,16 @@ static inline void l_dput(struct dentry *de) { + struct dentry *parent; if (!de || IS_ERR(de)) return; + shrink_dcache_parent(de); + parent = de->d_parent; + if (parent) + dget(parent); dput(de); + if (parent) + shrink_dcache_parent(parent); } #define LUSTRE_MDS_NAME "mds" -- 1.8.3.1