cleanup: call our unionfs_{unlock,lock}_dentry instead of mutex ops.
authorErez_Zadok <ezk@cs.sunysb.edu>
Wed, 18 Apr 2007 06:08:14 +0000 (02:08 -0400)
committerErez_Zadok <ezk@cs.sunysb.edu>
Tue, 21 Aug 2007 22:38:55 +0000 (18:38 -0400)
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.

fs/unionfs/lookup.c

index 7918f0426de80d6c4c8034b9bbae372d5a9f0950..253fe4a41ce11460c6b5eb6513b178072559bffc 100644 (file)
@@ -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);