]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/ipv4/netfilter/ipt_CLUSTERIP.c
new helper: file_inode(file)
[mirror_ubuntu-artful-kernel.git] / net / ipv4 / netfilter / ipt_CLUSTERIP.c
index 75e33a7048f8b759eee7e4f8cf6729a194c1d3cd..5852b249054f28bbc78e30ec3bde2748919a7480 100644 (file)
@@ -657,7 +657,7 @@ static int clusterip_proc_release(struct inode *inode, struct file *file)
 static ssize_t clusterip_proc_write(struct file *file, const char __user *input,
                                size_t size, loff_t *ofs)
 {
-       struct clusterip_config *c = PDE(file->f_path.dentry->d_inode)->data;
+       struct clusterip_config *c = PDE(file_inode(file))->data;
 #define PROC_WRITELEN  10
        char buffer[PROC_WRITELEN+1];
        unsigned long nodenum;