diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-02-19 19:46:56 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-03-05 15:44:53 -0500 |
commit | 8fc795f703c5138e1a8bfb88c69f52632031aa6a (patch) | |
tree | aed975562fe5557ff552bc0fe45b5d2b6f5e56c9 /include/linux/nfs_fs.h | |
parent | 9467c4fdd66f6810cecef0f1173330f3c6e67d45 (diff) |
NFS: Cleanup - move nfs_write_inode() into fs/nfs/write.c
The sole purpose of nfs_write_inode is to commit unstable writes, so
move it into fs/nfs/write.c, and make nfs_commit_inode static.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index d09db1bc9083..384ea3ef2863 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -483,15 +483,8 @@ extern int nfs_wb_nocommit(struct inode *inode); | |||
483 | extern int nfs_wb_page(struct inode *inode, struct page* page); | 483 | extern int nfs_wb_page(struct inode *inode, struct page* page); |
484 | extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); | 484 | extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); |
485 | #if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4) | 485 | #if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4) |
486 | extern int nfs_commit_inode(struct inode *, int); | ||
487 | extern struct nfs_write_data *nfs_commitdata_alloc(void); | 486 | extern struct nfs_write_data *nfs_commitdata_alloc(void); |
488 | extern void nfs_commit_free(struct nfs_write_data *wdata); | 487 | extern void nfs_commit_free(struct nfs_write_data *wdata); |
489 | #else | ||
490 | static inline int | ||
491 | nfs_commit_inode(struct inode *inode, int how) | ||
492 | { | ||
493 | return 0; | ||
494 | } | ||
495 | #endif | 488 | #endif |
496 | 489 | ||
497 | static inline int | 490 | static inline int |