aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorAnna Schumaker <Anna.Schumaker@netapp.com>2015-06-10 16:54:28 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-06-10 18:32:40 -0400
commit11598b8ff2b97cf034d0c025cf125c92b574bafc (patch)
tree5867d1835d951902f47ab03d32f8b3d87519e3cd /fs/nfs/write.c
parentc86c90c656fa2c94c2491dd86cf09501193f0dad (diff)
NFS: Remove unused nfs_rw_ops->rw_release() function
This was only ever set to nfs_writeback_release_common(), a function which is completely empty. Let's just drop this function pointer and simplify the code a bit. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index dfc19f1575a1..d0f1f210342e 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1347,11 +1347,6 @@ void nfs_commit_prepare(struct rpc_task *task, void *calldata)
1347 NFS_PROTO(data->inode)->commit_rpc_prepare(task, data); 1347 NFS_PROTO(data->inode)->commit_rpc_prepare(task, data);
1348} 1348}
1349 1349
1350static void nfs_writeback_release_common(struct nfs_pgio_header *hdr)
1351{
1352 /* do nothing! */
1353}
1354
1355/* 1350/*
1356 * Special version of should_remove_suid() that ignores capabilities. 1351 * Special version of should_remove_suid() that ignores capabilities.
1357 */ 1352 */
@@ -2012,7 +2007,6 @@ static const struct nfs_rw_ops nfs_rw_write_ops = {
2012 .rw_mode = FMODE_WRITE, 2007 .rw_mode = FMODE_WRITE,
2013 .rw_alloc_header = nfs_writehdr_alloc, 2008 .rw_alloc_header = nfs_writehdr_alloc,
2014 .rw_free_header = nfs_writehdr_free, 2009 .rw_free_header = nfs_writehdr_free,
2015 .rw_release = nfs_writeback_release_common,
2016 .rw_done = nfs_writeback_done, 2010 .rw_done = nfs_writeback_done,
2017 .rw_result = nfs_writeback_result, 2011 .rw_result = nfs_writeback_result,
2018 .rw_initiate = nfs_initiate_write, 2012 .rw_initiate = nfs_initiate_write,