commit 178b9e62069a674b46c831f17a34d0c9cec967d4
Author: Yiannis Pericleous <[EMAIL PROTECTED]>
Date: Fri May 18 11:54:01 2007 -0400
export: dget root when parent in get_parent is root
diff --git a/fs/unionfs/export.c b/fs/unionfs/export.c
index 49fb600..cb80324 100644
--- a/fs/unionfs/export.c
+++ b/fs/unionfs/export.c
@@ -12,8 +12,10 @@ static struct dentry *__get_parent(struct super_block *sb,
struct dentry *odf_de
char *name = NULL;
int res;
- if (odf_root == odf_dentry)
+ if (odf_root == odf_dentry) {
+ dget(sb->s_root);
return sb->s_root;
+ }
name = kmalloc(NAME_MAX+1, GFP_KERNEL);
if (!name)
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs