summaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 9b372b845f6a..1dad18105ed0 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -490,6 +490,9 @@ void nfs_retry_commit(struct list_head *page_list,
490void nfs_commitdata_release(struct nfs_commit_data *data); 490void nfs_commitdata_release(struct nfs_commit_data *data);
491void nfs_request_add_commit_list(struct nfs_page *req, struct list_head *dst, 491void nfs_request_add_commit_list(struct nfs_page *req, struct list_head *dst,
492 struct nfs_commit_info *cinfo); 492 struct nfs_commit_info *cinfo);
493void nfs_request_add_commit_list_locked(struct nfs_page *req,
494 struct list_head *dst,
495 struct nfs_commit_info *cinfo);
493void nfs_request_remove_commit_list(struct nfs_page *req, 496void nfs_request_remove_commit_list(struct nfs_page *req,
494 struct nfs_commit_info *cinfo); 497 struct nfs_commit_info *cinfo);
495void nfs_init_cinfo(struct nfs_commit_info *cinfo, 498void nfs_init_cinfo(struct nfs_commit_info *cinfo,
@@ -623,13 +626,15 @@ void nfs_super_set_maxbytes(struct super_block *sb, __u64 maxfilesize)
623 * Record the page as unstable and mark its inode as dirty. 626 * Record the page as unstable and mark its inode as dirty.
624 */ 627 */
625static inline 628static inline
626void nfs_mark_page_unstable(struct page *page) 629void nfs_mark_page_unstable(struct page *page, struct nfs_commit_info *cinfo)
627{ 630{
628 struct inode *inode = page_file_mapping(page)->host; 631 if (!cinfo->dreq) {
632 struct inode *inode = page_file_mapping(page)->host;
629 633
630 inc_zone_page_state(page, NR_UNSTABLE_NFS); 634 inc_zone_page_state(page, NR_UNSTABLE_NFS);
631 inc_wb_stat(&inode_to_bdi(inode)->wb, WB_RECLAIMABLE); 635 inc_wb_stat(&inode_to_bdi(inode)->wb, WB_RECLAIMABLE);
632 __mark_inode_dirty(inode, I_DIRTY_DATASYNC); 636 __mark_inode_dirty(inode, I_DIRTY_DATASYNC);
637 }
633} 638}
634 639
635/* 640/*