summaryrefslogtreecommitdiffstats
path: root/fs/nfs/file.c
diff options
context:
space:
mode:
authorAnna Schumaker <Anna.Schumaker@netapp.com>2015-07-13 20:01:33 +0200
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-08-17 20:32:56 +0200
commitaff8d8dc4c34804c6a1de04f1b3313aa9063bf46 (patch)
treee10ddb59fb6507d9e7aef5b87cc2b74c5b6a0cbd /fs/nfs/file.c
parentNFS: Rename nfs_commit_unstable_pages() to nfs_write_inode() (diff)
downloadlinux-aff8d8dc4c34804c6a1de04f1b3313aa9063bf46.tar.xz
linux-aff8d8dc4c34804c6a1de04f1b3313aa9063bf46.zip
NFS: Remove nfs_release()
And call nfs_file_clear_open_context() directly. This makes it obvious that nfs_file_release() will always return 0. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/file.c')
-rw-r--r--fs/nfs/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index cc4fa1ed61fc..7538a8582384 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -82,7 +82,8 @@ nfs_file_release(struct inode *inode, struct file *filp)
dprintk("NFS: release(%pD2)\n", filp);
nfs_inc_stats(inode, NFSIOS_VFSRELEASE);
- return nfs_release(inode, filp);
+ nfs_file_clear_open_context(filp);
+ return 0;
}
EXPORT_SYMBOL_GPL(nfs_file_release);