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/nfs_fs.h | |
parent | 164ae58c3c2a56e99d7ae207499f1fbd5e6f263d (diff) | |
download | op-kernel-dev-f418c64b71590bac8fdebd0969a1eeaffaf036d2.zip op-kernel-dev-f418c64b71590bac8fdebd0969a1eeaffaf036d2.tar.gz |
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/nfs_fs.h')
-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 5180a7e..fd334d4b 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 extern int nfs_wb_all(struct inode *inode); extern int nfs_wb_page(struct inode *inode, struct page* page); extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); -#if IS_ENABLED(CONFIG_NFS_V3) || IS_ENABLED(CONFIG_NFS_V4) extern int nfs_commit_inode(struct inode *, int); extern struct nfs_commit_data *nfs_commitdata_alloc(void); extern void nfs_commit_free(struct nfs_commit_data *data); -#else -static inline int -nfs_commit_inode(struct inode *inode, int how) -{ - return 0; -} -#endif static inline int nfs_have_writebacks(struct inode *inode) |