diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-30 16:05:21 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-30 19:06:20 -0400 |
commit | 19d87ca3623956494b517f3abe0caf2616d55457 (patch) | |
tree | b887ceec474eaaa9cc977483dda666276f6d3fe0 /fs/nfs/write.c | |
parent | 6a74490dca897471a994a542fc7c5a469b48b46b (diff) |
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.c | 20 |
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) | |||
1674 | return nfs_commit_unstable_pages(inode, wbc); | 1674 | return nfs_commit_unstable_pages(inode, wbc); |
1675 | } | 1675 | } |
1676 | 1676 | ||
1677 | #ifdef CONFIG_NFS_V4 | ||
1678 | int nfs4_write_inode(struct inode *inode, struct writeback_control *wbc) | ||
1679 | { | ||
1680 | int ret = nfs_write_inode(inode, wbc); | ||
1681 | |||
1682 | if (ret >= 0 && test_bit(NFS_INO_LAYOUTCOMMIT, &NFS_I(inode)->flags)) { | ||
1683 | int status; | ||
1684 | bool sync = true; | ||
1685 | |||
1686 | if (wbc->sync_mode == WB_SYNC_NONE) | ||
1687 | sync = false; | ||
1688 | |||
1689 | status = pnfs_layoutcommit_inode(inode, sync); | ||
1690 | if (status < 0) | ||
1691 | return status; | ||
1692 | } | ||
1693 | return ret; | ||
1694 | } | ||
1695 | #endif | ||
1696 | |||
1697 | /* | 1677 | /* |
1698 | * flush the inode to disk. | 1678 | * flush the inode to disk. |
1699 | */ | 1679 | */ |