diff options
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index d09db1bc9083..1a0b85aa151e 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -33,9 +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 | #define FLUSH_INVALIDATE 64 /* Invalidate the page cache */ | ||
38 | #define FLUSH_NOWRITEPAGE 128 /* Don't call writepage() */ | ||
39 | 36 | ||
40 | #ifdef __KERNEL__ | 37 | #ifdef __KERNEL__ |
41 | 38 | ||
@@ -166,6 +163,7 @@ struct nfs_inode { | |||
166 | struct radix_tree_root nfs_page_tree; | 163 | struct radix_tree_root nfs_page_tree; |
167 | 164 | ||
168 | unsigned long npages; | 165 | unsigned long npages; |
166 | unsigned long ncommit; | ||
169 | 167 | ||
170 | /* Open contexts for shared mmap writes */ | 168 | /* Open contexts for shared mmap writes */ |
171 | struct list_head open_files; | 169 | struct list_head open_files; |
@@ -349,7 +347,6 @@ extern int nfs_attribute_timeout(struct inode *inode); | |||
349 | extern int nfs_revalidate_inode(struct nfs_server *server, struct inode *inode); | 347 | extern int nfs_revalidate_inode(struct nfs_server *server, struct inode *inode); |
350 | extern int __nfs_revalidate_inode(struct nfs_server *, struct inode *); | 348 | extern int __nfs_revalidate_inode(struct nfs_server *, struct inode *); |
351 | extern int nfs_revalidate_mapping(struct inode *inode, struct address_space *mapping); | 349 | extern int nfs_revalidate_mapping(struct inode *inode, struct address_space *mapping); |
352 | extern int nfs_revalidate_mapping_nolock(struct inode *inode, struct address_space *mapping); | ||
353 | extern int nfs_setattr(struct dentry *, struct iattr *); | 350 | extern int nfs_setattr(struct dentry *, struct iattr *); |
354 | extern void nfs_setattr_update_inode(struct inode *inode, struct iattr *attr); | 351 | extern void nfs_setattr_update_inode(struct inode *inode, struct iattr *attr); |
355 | extern struct nfs_open_context *get_nfs_open_context(struct nfs_open_context *ctx); | 352 | extern struct nfs_open_context *get_nfs_open_context(struct nfs_open_context *ctx); |
@@ -477,21 +474,12 @@ extern int nfs_writeback_done(struct rpc_task *, struct nfs_write_data *); | |||
477 | * Try to write back everything synchronously (but check the | 474 | * Try to write back everything synchronously (but check the |
478 | * return value!) | 475 | * return value!) |
479 | */ | 476 | */ |
480 | extern long nfs_sync_mapping_wait(struct address_space *, struct writeback_control *, int); | ||
481 | extern int nfs_wb_all(struct inode *inode); | 477 | extern int nfs_wb_all(struct inode *inode); |
482 | extern int nfs_wb_nocommit(struct inode *inode); | ||
483 | extern int nfs_wb_page(struct inode *inode, struct page* page); | 478 | extern int nfs_wb_page(struct inode *inode, struct page* page); |
484 | extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); | 479 | extern int nfs_wb_page_cancel(struct inode *inode, struct page* page); |
485 | #if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4) | 480 | #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); | 481 | extern struct nfs_write_data *nfs_commitdata_alloc(void); |
488 | extern void nfs_commit_free(struct nfs_write_data *wdata); | 482 | 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 | 483 | #endif |
496 | 484 | ||
497 | static inline int | 485 | static inline int |