Merge tag 'v4.4.16' into linux-linaro-lsk-v4.4
[firefly-linux-kernel-4.4.55.git] / fs / nfs / inode.c
index 3e2071a177fd029e043b34018b7628d8c6b03309..f714b98cfd744d435238b02713df053a77ee0d34 100644 (file)
@@ -927,7 +927,7 @@ int nfs_open(struct inode *inode, struct file *filp)
 {
        struct nfs_open_context *ctx;
 
-       ctx = alloc_nfs_open_context(filp->f_path.dentry, filp->f_mode);
+       ctx = alloc_nfs_open_context(file_dentry(filp), filp->f_mode);
        if (IS_ERR(ctx))
                return PTR_ERR(ctx);
        nfs_file_set_open_context(filp, ctx);