Unionfs: use f_path instead of f_dentry/mnt
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 25 Nov 2007 23:32:12 +0000 (18:32 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 25 Nov 2007 23:32:12 +0000 (18:32 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/fanout.h

index ec18013d5a30ab57a702931887acfcb3b4a0777a..864383ebf16b69a22de21ab4f3198287c90d1eec 100644 (file)
@@ -106,7 +106,7 @@ static inline void unionfs_set_lower_file_idx(struct file *f, int index,
        UNIONFS_F(f)->lower_files[index] = val;
        /* save branch ID (may be redundant?) */
        UNIONFS_F(f)->saved_branch_ids[index] =
-               branch_id((f)->f_dentry->d_sb, index);
+               branch_id((f)->f_path.dentry->d_sb, index);
 }
 
 static inline void unionfs_set_lower_file(struct file *f, struct file *val)