Unionfs: debug - don't complain when d_deleted dentries
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 03:23:39 +0000 (23:23 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 03:23:39 +0000 (23:23 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/debug.c

index f9d14f00cd3f3bf8f3af2368ec6b1f7e303c059f..b9596ed0aa30e829d5e9d7cdb03b1d0bfe543b1a 100644 (file)
@@ -366,12 +366,13 @@ void __unionfs_check_file(const struct file *file,
                pr_debug(" CF0: file/dentry=%p:%p fstart/end=%d:%d\n",
                         file, dentry, fstart, fend);
        }
-       if (unlikely(fstart != dstart)) {
+       /* d_deleted dentries can be ignored for this test */
+       if (unlikely(fstart != dstart) && !d_deleted(dentry)) {
                PRINT_CALLER(fname, fxn, line);
                pr_debug(" CF1: file/dentry=%p:%p fstart=%d dstart=%d\n",
                         file, dentry, fstart, dstart);
        }
-       if (unlikely(fend != dend)) {
+       if (unlikely(fend != dend) && !d_deleted(dentry)) {
                PRINT_CALLER(fname, fxn, line);
                pr_debug(" CF2: file/dentry=%p:%p fend=%d dend=%d\n",
                         file, dentry, fend, dend);