Revert "invariants: don't complain about directories with some NULL lower objects"
authorErez_Zadok <ezk@cs.sunysb.edu>
Mon, 28 May 2007 23:45:45 +0000 (19:45 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 12 Jan 2009 23:20:29 +0000 (18:20 -0500)
This reverts commit 9d8ee83d478be30faf351af7628066ec6658efb5.

fs/unionfs/union.h

index 753eb2ab48eb27195867f4ccdd82fb45a1f18e14..bb8d2b85f8c95c1f660844d5e0d17fec1bdae783 100644 (file)
@@ -510,19 +510,9 @@ static inline void unionfs_mntput(struct dentry *dentry, int bindex)
                        return;
                if (!mnt && bindex >= 0) {
 #ifdef UNIONFS_DEBUG
-                       /*
-                        * Directories can have NULL lower objects in
-                        * between start/end, but NOT if at the start/end
-                        * range.  We cannot verify that this dentry is a
-                        * type=DIR, because it may already be a negative
-                        * dentry.  But if dbstart is greater than dbend, we
-                        * know that this couldn't have been a regular file:
-                        * it had to have been a directory.
-                        */
-                       if (!(bindex > dbstart(dentry) && bindex < dbend(dentry)))
-                               printk(KERN_WARNING
-                                      "unionfs_mntput: mnt=%p bindex=%d (%s:%d)\n",
-                                      mnt, bindex, fxn, line);
+                       printk(KERN_DEBUG
+                              "unionfs_mntput: mnt=%p bindex=%d\n",
+                              mnt, bindex);
 #endif /* UNIONFS_DEBUG */
                        return;
                }