commit 88c669cc8c8a2402e63658d872298ad36de63392
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Sun Nov 18 20:27:01 2007 -0500

    Unionfs: use f_path not f_dentry/f_mnt
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/debug.c b/fs/unionfs/debug.c
index 8464fbb..bc221d6 100644
--- a/fs/unionfs/debug.c
+++ b/fs/unionfs/debug.c
@@ -437,7 +437,7 @@ void __unionfs_check_nd(const struct nameidata *nd,
        if (nd->flags & LOOKUP_OPEN) {
                file = nd->intent.open.file;
                if (unlikely(file->f_path.dentry &&
-                            strcmp(file->f_dentry->d_sb->s_type->name,
+                            strcmp(file->f_path.dentry->d_sb->s_type->name,
                                    UNIONFS_NAME))) {
                        PRINT_CALLER(fname, fxn, line);
                        pr_debug(" CND1: lower_file of type %s\n",
diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c
index 1521560..92f91d2 100644
--- a/fs/unionfs/dirfops.c
+++ b/fs/unionfs/dirfops.c
@@ -38,7 +38,7 @@ static int unionfs_readdir(struct file *file, void *dirent, 
filldir_t filldir)
        if (unlikely(err))
                goto out;
 
-       inode = file->f_dentry->d_inode;
+       inode = file->f_path.dentry->d_inode;
 
        /* Get the odf/ic file */
        /* FIXME: this should be saved somewhere, also check mtime */
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to