Unionfs: debug - don't complain when d_deleted dentries
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 04:02:51 +0000 (00:02 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 20 Jun 2014 00:42:16 +0000 (20:42 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/debug.c

index 2b34bf19e003d2c82c7c880326155b42f1212fc8..e5485db416f520c38e98af491e97cb6c301d76d7 100644 (file)
@@ -362,12 +362,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);