diff options
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index ebeb94ce1b0b..548ae3113005 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -714,7 +714,7 @@ EXPORT_SYMBOL_GPL(put_nfs_open_context); | |||
714 | */ | 714 | */ |
715 | void nfs_file_set_open_context(struct file *filp, struct nfs_open_context *ctx) | 715 | void nfs_file_set_open_context(struct file *filp, struct nfs_open_context *ctx) |
716 | { | 716 | { |
717 | struct inode *inode = filp->f_path.dentry->d_inode; | 717 | struct inode *inode = file_inode(filp); |
718 | struct nfs_inode *nfsi = NFS_I(inode); | 718 | struct nfs_inode *nfsi = NFS_I(inode); |
719 | 719 | ||
720 | filp->private_data = get_nfs_open_context(ctx); | 720 | filp->private_data = get_nfs_open_context(ctx); |
@@ -747,7 +747,7 @@ struct nfs_open_context *nfs_find_open_context(struct inode *inode, struct rpc_c | |||
747 | 747 | ||
748 | static void nfs_file_clear_open_context(struct file *filp) | 748 | static void nfs_file_clear_open_context(struct file *filp) |
749 | { | 749 | { |
750 | struct inode *inode = filp->f_path.dentry->d_inode; | 750 | struct inode *inode = file_inode(filp); |
751 | struct nfs_open_context *ctx = nfs_file_open_context(filp); | 751 | struct nfs_open_context *ctx = nfs_file_open_context(filp); |
752 | 752 | ||
753 | if (ctx) { | 753 | if (ctx) { |