Unionfs: remove useless debugging messages
authorErez Zadok <ezk@cs.sunysb.edu>
Sat, 24 Nov 2007 07:55:21 +0000 (02:55 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 12 Aug 2011 02:36:59 +0000 (22:36 -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/commonfops.c
fs/unionfs/dentry.c

index b33917e3051329ca21a8785e4036409e1d67a37e..f714e2f213e9f7c19d4d1860e2631b72398779d0 100644 (file)
@@ -648,11 +648,6 @@ int unionfs_file_release(struct inode *inode, struct file *file)
 
        if (fileinfo->rdstate) {
                fileinfo->rdstate->access = jiffies;
-               pr_debug("unionfs: saving rdstate with cookie "
-                        "%u [%d.%lld]\n",
-                        fileinfo->rdstate->cookie,
-                        fileinfo->rdstate->bindex,
-                        (long long)fileinfo->rdstate->dirpos);
                spin_lock(&inodeinfo->rdlock);
                inodeinfo->rdcount++;
                list_add_tail(&fileinfo->rdstate->cache,
index edea1a4fe48a723794d52d0a3de7a9ec3a8c96ce..05d99140d3139f8049f1ad221f84757070c29e11 100644 (file)
@@ -45,12 +45,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)
@@ -460,13 +456,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);