commit 5e161c9cc17ef9ed6419d0293100efd9893287ff
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 
49fb600fac7d564b5a20464115148618fb5076cf..cb80324056f262d13f0c5e95cd5b3af93ff1aeed
 100644
--- a/fs/unionfs/export.c
+++ b/fs/unionfs/export.c
@@ -12,8 +12,10 @@ static struct dentry *__get_parent(struc
        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

Reply via email to