Unionfs: don't check dentry on error
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 28 Dec 2007 00:22:41 +0000 (19:22 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 28 Dec 2007 00:22:41 +0000 (19:22 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c

index 4eb72faf029421cc0b0d61069ba0a044c7ae5039..822a7d6a8427068a6267c5b42093b1e622e11805 100644 (file)
@@ -150,9 +150,10 @@ out:
                unionfs_postcopyup_setmnt(dentry);
 
        unionfs_check_inode(parent);
-       if (!err)
+       if (!err) {
                unionfs_check_dentry(dentry->d_parent);
-       unionfs_check_dentry(dentry);
+               unionfs_check_dentry(dentry);
+       }
        unionfs_unlock_dentry(dentry);
        unionfs_read_unlock(dentry->d_sb);
        return err;