From 11c70c20713591a5ea30d859fde1bf91e4add335 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Thu, 27 Dec 2007 19:22:46 -0500 Subject: [PATCH] Unionfs: don't check dentry on error Signed-off-by: Erez Zadok --- fs/unionfs/inode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c index 4eb72faf029..822a7d6a842 100644 --- a/fs/unionfs/inode.c +++ b/fs/unionfs/inode.c @@ -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; -- 2.43.0