GIT: unionfs2-2.6.27.y: Unionfs: use dget_parent in revalidation code
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:17:49 EDT 2010
commit 69601267b45a617bfb74fdc1e129d7f9d4f31aab
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date: Fri Feb 15 17:18:48 2008 -0500
Unionfs: use dget_parent in revalidation code
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c
index a956b94..f8f65e1 100644
--- a/fs/unionfs/dentry.c
+++ b/fs/unionfs/dentry.c
@@ -410,15 +410,10 @@ bool __unionfs_d_revalidate_chain(struct dentry *dentry, struct nameidata *nd,
goto out;
}
- /*
- * lock all dentries in chain, in child to parent order.
- * if failed, then sleep for a little, then retry.
- */
- dtmp = dentry->d_parent;
- for (i = chain_len-1; i >= 0; i--) {
- chain[i] = dget(dtmp);
- dtmp = dtmp->d_parent;
- }
+ /* grab all dentries in chain, in child to parent order */
+ dtmp = dentry;
+ for (i = chain_len-1; i >= 0; i--)
+ dtmp = chain[i] = dget_parent(dtmp);
/*
* call __unionfs_d_revalidate_one() on each dentry, but in parent
More information about the unionfs-cvs
mailing list