summaryrefslogtreecommitdiffstats
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2012-07-30 16:05:21 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-07-30 19:06:20 -0400
commit19d87ca3623956494b517f3abe0caf2616d55457 (patch)
treeb887ceec474eaaa9cc977483dda666276f6d3fe0 /fs/nfs/write.c
parent6a74490dca897471a994a542fc7c5a469b48b46b (diff)
downloadtalos-obmc-linux-19d87ca3623956494b517f3abe0caf2616d55457.tar.gz
talos-obmc-linux-19d87ca3623956494b517f3abe0caf2616d55457.zip
NFS: Split out remaining NFS v4 inode functions
Somehow I missed this in my previous patch series, but these functions are only needed by the v4 code and should be moved to a v4-only file. I wasn't exactly sure where I should put these functions, so I moved them into nfs4super.c where I could make them static. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r--fs/nfs/write.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index f312860c15d0..6ddac54dc67f 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1674,26 +1674,6 @@ int nfs_write_inode(struct inode *inode, struct writeback_control *wbc)
return nfs_commit_unstable_pages(inode, wbc);
}
-#ifdef CONFIG_NFS_V4
-int nfs4_write_inode(struct inode *inode, struct writeback_control *wbc)
-{
- int ret = nfs_write_inode(inode, wbc);
-
- if (ret >= 0 && test_bit(NFS_INO_LAYOUTCOMMIT, &NFS_I(inode)->flags)) {
- int status;
- bool sync = true;
-
- if (wbc->sync_mode == WB_SYNC_NONE)
- sync = false;
-
- status = pnfs_layoutcommit_inode(inode, sync);
- if (status < 0)
- return status;
- }
- return ret;
-}
-#endif
-
/*
* flush the inode to disk.
*/
OpenPOWER on IntegriCloud