diff options
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 7c8ca175d87b..45633f9ad851 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -538,7 +538,7 @@ struct nfs_open_context *nfs_find_open_context(struct inode *inode, struct rpc_c | |||
538 | static void nfs_file_clear_open_context(struct file *filp) | 538 | static void nfs_file_clear_open_context(struct file *filp) |
539 | { | 539 | { |
540 | struct inode *inode = filp->f_path.dentry->d_inode; | 540 | struct inode *inode = filp->f_path.dentry->d_inode; |
541 | struct nfs_open_context *ctx = (struct nfs_open_context *)filp->private_data; | 541 | struct nfs_open_context *ctx = nfs_file_open_context(filp); |
542 | 542 | ||
543 | if (ctx) { | 543 | if (ctx) { |
544 | filp->private_data = NULL; | 544 | filp->private_data = NULL; |