From ad866005568dae8cb75f521d8814941924da99e1 Mon Sep 17 00:00:00 2001 From: Erez_Zadok Date: Fri, 16 Nov 2007 13:46:20 -0500 Subject: [PATCH] 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 --- fs/unionfs/dentry.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index 0bebd97de8..c0a0d5503e 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; } /* -- 2.43.0