new helper: file_inode(file)
[GitHub/LineageOS/android_kernel_samsung_universal7580.git] / fs / nfs / proc.c
index f084dac948e1cca5f773adb168ad9dc5faf4dbf7..fc8de9016acfb2a6c3185e3008aa5f70e23f4545 100644 (file)
@@ -662,7 +662,7 @@ nfs_proc_commit_setup(struct nfs_commit_data *data, struct rpc_message *msg)
 static int
 nfs_proc_lock(struct file *filp, int cmd, struct file_lock *fl)
 {
-       struct inode *inode = filp->f_path.dentry->d_inode;
+       struct inode *inode = file_inode(filp);
 
        return nlmclnt_proc(NFS_SERVER(inode)->nlm_host, cmd, fl);
 }