]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/hostfs/hostfs_kern.c
new helper: file_inode(file)
[mirror_ubuntu-artful-kernel.git] / fs / hostfs / hostfs_kern.c
index 457addc5c91f2f2da42092d9f193a47aa8f678dd..ba6de25771ac09e1099dfd73fb8229e5aaeb3148 100644 (file)
@@ -30,7 +30,7 @@ static inline struct hostfs_inode_info *HOSTFS_I(struct inode *inode)
        return list_entry(inode, struct hostfs_inode_info, vfs_inode);
 }
 
-#define FILE_HOSTFS_I(file) HOSTFS_I((file)->f_path.dentry->d_inode)
+#define FILE_HOSTFS_I(file) HOSTFS_I(file_inode(file))
 
 static int hostfs_d_delete(const struct dentry *dentry)
 {