diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-03-25 17:23:31 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-03-27 12:39:37 -0400 |
commit | 9e1681c2e74bdd84bad6f74b47a4d88ad2f433df (patch) | |
tree | 8c515f73cb471a2839876228dad497001d6440f0 /include | |
parent | d9dabc1a01656868d53a1d08309ca24d922b1376 (diff) |
NFSv4: Truncating file opens should also sync O_DIRECT writes
We don't just want to sync out buffered writes, but also O_DIRECT ones.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfs_fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index b01ccf371fdc..b638eb6727c6 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -512,6 +512,7 @@ extern int nfs_updatepage(struct file *, struct page *, unsigned int, unsigned | |||
512 | * Try to write back everything synchronously (but check the | 512 | * Try to write back everything synchronously (but check the |
513 | * return value!) | 513 | * return value!) |
514 | */ | 514 | */ |
515 | extern int nfs_sync_inode(struct inode *inode); | ||
515 | extern int nfs_wb_all(struct inode *inode); | 516 | extern int nfs_wb_all(struct inode *inode); |
516 | extern int nfs_wb_page(struct inode *inode, struct page* page); | 517 | extern int nfs_wb_page(struct inode *inode, struct page* page); |
517 | extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); | 518 | extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); |