Unionfs: remove useless debugging messages
authorRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Sun, 25 Nov 2007 22:47:31 +0000 (17:47 -0500)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:22 +0000 (19:03 -0400)
These are considered normal behaviour, they don't really reveal any insight
to the person debugging the code, and they tend to clutter console messages.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/dentry.c

index cf96310ac54d2165c730837fe505bd86ed9eeac8..ada52f1244941de05c1b4289ba17317820475d44 100644 (file)
@@ -61,12 +61,8 @@ static bool __unionfs_d_revalidate_one(struct dentry *dentry,
        verify_locked(dentry);
 
        /* if the dentry is unhashed, do NOT revalidate */
-       if (d_deleted(dentry)) {
-               pr_debug("unionfs: unhashed dentry being "
-                        "revalidated: %*s\n",
-                        dentry->d_name.len, dentry->d_name.name);
+       if (d_deleted(dentry))
                goto out;
-       }
 
        BUG_ON(dbstart(dentry) == -1);
        if (dentry->d_inode)
@@ -476,13 +472,8 @@ static void unionfs_d_release(struct dentry *dentry)
                printk(KERN_ERR "unionfs: dentry without private data: %.*s\n",
                       dentry->d_name.len, dentry->d_name.name);
                goto out;
-       } else if (dbstart(dentry) < 0) {
-               /* this is due to a failed lookup */
-               pr_debug("unionfs: dentry without lower "
-                        "dentries: %.*s\n",
-                        dentry->d_name.len, dentry->d_name.name);
-               goto out_free;
-       }
+       } else if (dbstart(dentry) < 0)
+               goto out_free;  /* due to a (normal) failed lookup */
 
        /* Release all the lower dentries */
        bstart = dbstart(dentry);