aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2010-02-19 20:03:26 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-03-05 15:44:55 -0500
commitacdc53b2146c7ee67feb1f02f7bc3020126514b8 (patch)
tree3d8b087e8526c4caed87229fe12c2a2b261dd0a5 /include/linux/nfs_fs.h
parentc988950eb6dd6f8e6d98503ca094622729e9aa13 (diff)
NFS: Replace __nfs_write_mapping with sync_inode()
Now that we have correct COMMIT semantics in writeback_single_inode, we can reduce and simplify nfs_wb_all(). Also replace nfs_wb_nocommit() with a call to filemap_write_and_wait(), which doesn't need to hold the inode->i_mutex. With that done, we can eliminate nfs_write_mapping() altogether. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r--include/linux/nfs_fs.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 1083134c02ff..93f439e7c5bf 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -33,7 +33,6 @@
33#define FLUSH_STABLE 4 /* commit to stable storage */ 33#define FLUSH_STABLE 4 /* commit to stable storage */
34#define FLUSH_LOWPRI 8 /* low priority background flush */ 34#define FLUSH_LOWPRI 8 /* low priority background flush */
35#define FLUSH_HIGHPRI 16 /* high priority memory reclaim flush */ 35#define FLUSH_HIGHPRI 16 /* high priority memory reclaim flush */
36#define FLUSH_NOCOMMIT 32 /* Don't send the NFSv3/v4 COMMIT */
37 36
38#ifdef __KERNEL__ 37#ifdef __KERNEL__
39 38
@@ -478,7 +477,6 @@ extern int nfs_writeback_done(struct rpc_task *, struct nfs_write_data *);
478 */ 477 */
479extern long nfs_sync_mapping_wait(struct address_space *, struct writeback_control *, int); 478extern long nfs_sync_mapping_wait(struct address_space *, struct writeback_control *, int);
480extern int nfs_wb_all(struct inode *inode); 479extern int nfs_wb_all(struct inode *inode);
481extern int nfs_wb_nocommit(struct inode *inode);
482extern int nfs_wb_page(struct inode *inode, struct page* page); 480extern int nfs_wb_page(struct inode *inode, struct page* page);
483extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); 481extern int nfs_wb_page_cancel(struct inode *inode, struct page* page);
484#if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4) 482#if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4)