commit 427f81663fc2655ff9f6f810496965d6dc3745ec
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date:   Wed Sep 19 23:55:27 2007 -0400

    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 2db8ba5..9e0742d 100644
--- a/fs/unionfs/dentry.c
+++ b/fs/unionfs/dentry.c
@@ -411,19 +411,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