diff options
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 15 |
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, | |||
490 | void nfs_commitdata_release(struct nfs_commit_data *data); | 490 | void nfs_commitdata_release(struct nfs_commit_data *data); |
491 | void nfs_request_add_commit_list(struct nfs_page *req, struct list_head *dst, | 491 | void 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); |
493 | void nfs_request_add_commit_list_locked(struct nfs_page *req, | ||
494 | struct list_head *dst, | ||
495 | struct nfs_commit_info *cinfo); | ||
493 | void nfs_request_remove_commit_list(struct nfs_page *req, | 496 | void nfs_request_remove_commit_list(struct nfs_page *req, |
494 | struct nfs_commit_info *cinfo); | 497 | struct nfs_commit_info *cinfo); |
495 | void nfs_init_cinfo(struct nfs_commit_info *cinfo, | 498 | void 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 | */ |
625 | static inline | 628 | static inline |
626 | void nfs_mark_page_unstable(struct page *page) | 629 | void 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 | /* |