Whamcloud - gitweb
- part one of prune fix.
authorbraam <braam>
Tue, 2 Apr 2002 16:33:31 +0000 (16:33 +0000)
committerbraam <braam>
Tue, 2 Apr 2002 16:33:31 +0000 (16:33 +0000)
lustre/include/linux/lustre_mds.h

index 764ef33..3f445e8 100644 (file)
 
 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"