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

index 73c9e7ce13ab23082f3e2edc75451e15d97cf859..6fc5a3eab085997546396f713babcd6e2f3650cf 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);