GIT: unionfs2-2.6.27.y: cleanup: call our unionfs_{unlock, lock}_dentry instead of mutex ops.
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:16:11 EDT 2010
commit 320dd5adc80739874fa13ec65bf505d8dacc984e
Author: Erez_Zadok <ezk at cs.sunysb.edu>
Date: Wed Apr 18 02:08:14 2007 -0400
cleanup: call our unionfs_{unlock,lock}_dentry instead of mutex ops.
This is for consistency with the rest of the code, which helps us place
debugging code when un/locking our special "info" mutex in our dentries.
diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c
index 7918f04..253fe4a 100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -464,7 +464,7 @@ int new_dentry_private_data(struct dentry *dentry)
goto out;
mutex_init(&info->lock);
- mutex_lock(&info->lock);
+ unionfs_lock_dentry(dentry);
unlock_on_err = 1;
info->lower_paths = NULL;
@@ -500,7 +500,7 @@ int new_dentry_private_data(struct dentry *dentry)
out_free:
kfree(info->lower_paths);
if (unlock_on_err)
- mutex_unlock(&info->lock);
+ unionfs_unlock_dentry(dentry);
out:
free_dentry_private_data(info);
More information about the unionfs-cvs
mailing list