From 701d74f8672e9b316efc5bb4431bc9701d085539 Mon Sep 17 00:00:00 2001 From: Erez_Zadok Date: Mon, 10 Sep 2007 20:10:31 -0400 Subject: [PATCH] Unionfs: use boolean type in unionfs_d_revalidate Signed-off-by: Erez Zadok --- fs/unionfs/dentry.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index 91f97802b203..2db8ba535ab7 100644 --- a/fs/unionfs/dentry.c +++ b/fs/unionfs/dentry.c @@ -411,18 +411,19 @@ out: static int unionfs_d_revalidate(struct dentry *dentry, struct nameidata *nd) { - int err; + bool valid; unionfs_read_lock(dentry->d_sb); unionfs_lock_dentry(dentry); - err = __unionfs_d_revalidate_chain(dentry, nd, false); + valid = __unionfs_d_revalidate_chain(dentry, nd, false); unionfs_unlock_dentry(dentry); - unionfs_check_dentry(dentry); + if (valid) + unionfs_check_dentry(dentry); unionfs_read_unlock(dentry->d_sb); - return err; + return valid; } /* -- 2.43.0