Whamcloud - gitweb
Add l_dput assertion.
authoradilger <adilger>
Mon, 26 Aug 2002 18:12:44 +0000 (18:12 +0000)
committeradilger <adilger>
Mon, 26 Aug 2002 18:12:44 +0000 (18:12 +0000)
lustre/include/linux/lustre_lib.h

index 2b3ff7a..62edf8c 100644 (file)
@@ -102,6 +102,7 @@ static inline void l_dput(struct dentry *de)
         if (!de || IS_ERR(de))
                 return;
         shrink_dcache_parent(de);
+        LASSERT(atomic_read(&de->d_count) > 0);
         dput(de);
 }