commit a401cbcfc6e9f91e6074b5eb0ec4ef1b69b22572
Author: Erez_Zadok <[EMAIL PROTECTED]>
Date: Fri May 25 15:51:33 2007 -0400
unionfs: minor cleanup and better commenting in new_dentry_private_data
Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>
Conflicts:
fs/unionfs/lookup.c
diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c
index db7c344..cf92d64 100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -406,7 +406,10 @@ void free_dentry_private_data(struct unionfs_dentry_info
*udi)
kmem_cache_free(unionfs_dentry_cachep, udi);
}
-/* allocate new dentry private data, free old one if necessary */
+/*
+ * Allocate new dentry private data, free old one if necessary.
+ * On success, returns a dentry whose ->info node is locked already.
+ */
int new_dentry_private_data(struct dentry *dentry)
{
int size;
@@ -424,8 +427,7 @@ int new_dentry_private_data(struct dentry *dentry)
mutex_lock(&info->lock);
- info->bstart = -1;
- info->bend = -1;
+ info->bstart = info->bend = -1;
info->bcount = sbmax(dentry->d_sb);
info->odf_info = NULL;
atomic_set(&info->generation,
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs