commit ad866005568dae8cb75f521d8814941924da99e1
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date:   Fri Nov 16 13:46:20 2007 -0500

    Unionfs: use int in unionfs_d_revalidate
    
    We have to use an int, even though unionfs_d_revalidate calls other routines
    that return only true/false, b/c ->d_revalidate is allowed to return a
    negative errno number.
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c
index 0bebd97..c0a0d55 100644
--- a/fs/unionfs/dentry.c
+++ b/fs/unionfs/dentry.c
@@ -427,19 +427,19 @@ out:
 
 static int unionfs_d_revalidate(struct dentry *dentry, struct nameidata *nd)
 {
-       bool valid;
+       int err;
 
        unionfs_read_lock(dentry->d_sb);
 
        unionfs_lock_dentry(dentry);
-       valid = __unionfs_d_revalidate_chain(dentry, nd, false);
+       err = __unionfs_d_revalidate_chain(dentry, nd, false);
        unionfs_unlock_dentry(dentry);
-       if (valid)
+       if (err > 0) /* true==1: dentry is valid */
                unionfs_check_dentry(dentry);
 
        unionfs_read_unlock(dentry->d_sb);
 
-       return valid;
+       return err;
 }
 
 /*
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to