commit bd6a65347495f0d47d908cd59ac14c271dd37c1b
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
db7c34497cef67e5ee9ff7c585b8aa18fba01e93..cf92d6450da3eab1e1aa3125789953e62968884d
100644
--- a/fs/unionfs/lookup.c
+++ b/fs/unionfs/lookup.c
@@ -406,7 +406,10 @@ void free_dentry_private_data(struct uni
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 dentr
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