commit 1faf828ba3ee1143ce1335b7a79f067268c1adef
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date: Mon Sep 10 20:10:31 2007 -0400
Unionfs: use boolean type in unionfs_d_revalidate
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c
index 91f9780..2db8ba5 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;
}
/*
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs