From: Erez_Zadok Date: Tue, 11 Sep 2007 00:10:31 +0000 (-0400) Subject: Unionfs: use boolean type in unionfs_d_revalidate X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=8d0431494e772a22fd236d7e9c6974ad2c142308;p=unionfs-3.5.y.git Unionfs: use boolean type in unionfs_d_revalidate Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index 91f97802b20..2db8ba535ab 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; } /*