more open-coded file_inode() calls
[deliverable/linux.git] / net / sunrpc / auth_gss / svcauth_gss.c
index 29b4ba93ab3cb795fb8dd307f6e248bfcc3a1495..b05ace4c5f124886f165e2f091713397dbe38df4 100644 (file)
@@ -1330,7 +1330,7 @@ static int wait_for_gss_proxy(struct net *net, struct file *file)
 static ssize_t write_gssp(struct file *file, const char __user *buf,
                         size_t count, loff_t *ppos)
 {
-       struct net *net = PDE_DATA(file->f_path.dentry->d_inode);
+       struct net *net = PDE_DATA(file_inode(file));
        char tbuf[20];
        unsigned long i;
        int res;
@@ -1358,7 +1358,7 @@ static ssize_t write_gssp(struct file *file, const char __user *buf,
 static ssize_t read_gssp(struct file *file, char __user *buf,
                         size_t count, loff_t *ppos)
 {
-       struct net *net = PDE_DATA(file->f_path.dentry->d_inode);
+       struct net *net = PDE_DATA(file_inode(file));
        unsigned long p = *ppos;
        char tbuf[10];
        size_t len;
This page took 0.023878 seconds and 5 git commands to generate.