diff options
| author | Anna Schumaker <Anna.Schumaker@netapp.com> | 2014-09-03 12:19:07 -0400 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-09-12 13:49:31 -0400 |
| commit | f418c64b71590bac8fdebd0969a1eeaffaf036d2 (patch) | |
| tree | 371dac8b5cbe52ce144920963a2e76bc66e97d4d /include/linux | |
| parent | 164ae58c3c2a56e99d7ae207499f1fbd5e6f263d (diff) | |
NFS: Unconditionally enable commit code
The goal is to create a generic NFS module with code that does not
depend on what versions of NFS are enabled.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nfs_fs.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 5180a7ededec..fd334d4b0d41 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
| @@ -529,17 +529,9 @@ extern int nfs_updatepage(struct file *, struct page *, unsigned int, unsigned | |||
| 529 | extern int nfs_wb_all(struct inode *inode); | 529 | extern int nfs_wb_all(struct inode *inode); |
| 530 | extern int nfs_wb_page(struct inode *inode, struct page* page); | 530 | extern int nfs_wb_page(struct inode *inode, struct page* page); |
| 531 | extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); | 531 | extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); |
| 532 | #if IS_ENABLED(CONFIG_NFS_V3) || IS_ENABLED(CONFIG_NFS_V4) | ||
| 533 | extern int nfs_commit_inode(struct inode *, int); | 532 | extern int nfs_commit_inode(struct inode *, int); |
| 534 | extern struct nfs_commit_data *nfs_commitdata_alloc(void); | 533 | extern struct nfs_commit_data *nfs_commitdata_alloc(void); |
| 535 | extern void nfs_commit_free(struct nfs_commit_data *data); | 534 | extern void nfs_commit_free(struct nfs_commit_data *data); |
| 536 | #else | ||
| 537 | static inline int | ||
| 538 | nfs_commit_inode(struct inode *inode, int how) | ||
| 539 | { | ||
| 540 | return 0; | ||
| 541 | } | ||
| 542 | #endif | ||
| 543 | 535 | ||
| 544 | static inline int | 536 | static inline int |
| 545 | nfs_have_writebacks(struct inode *inode) | 537 | nfs_have_writebacks(struct inode *inode) |
