diff options
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 88a6d2196ece..595d81e354d1 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -789,13 +789,8 @@ nfs_request_add_commit_list(struct nfs_page *req, struct list_head *dst, | |||
789 | nfs_list_add_request(req, dst); | 789 | nfs_list_add_request(req, dst); |
790 | cinfo->mds->ncommit++; | 790 | cinfo->mds->ncommit++; |
791 | spin_unlock(cinfo->lock); | 791 | spin_unlock(cinfo->lock); |
792 | if (!cinfo->dreq) { | 792 | if (!cinfo->dreq) |
793 | inc_zone_page_state(req->wb_page, NR_UNSTABLE_NFS); | 793 | nfs_mark_page_unstable(req->wb_page); |
794 | inc_bdi_stat(inode_to_bdi(page_file_mapping(req->wb_page)->host), | ||
795 | BDI_RECLAIMABLE); | ||
796 | __mark_inode_dirty(req->wb_context->dentry->d_inode, | ||
797 | I_DIRTY_DATASYNC); | ||
798 | } | ||
799 | } | 794 | } |
800 | EXPORT_SYMBOL_GPL(nfs_request_add_commit_list); | 795 | EXPORT_SYMBOL_GPL(nfs_request_add_commit_list); |
801 | 796 | ||
@@ -1605,11 +1600,8 @@ void nfs_retry_commit(struct list_head *page_list, | |||
1605 | req = nfs_list_entry(page_list->next); | 1600 | req = nfs_list_entry(page_list->next); |
1606 | nfs_list_remove_request(req); | 1601 | nfs_list_remove_request(req); |
1607 | nfs_mark_request_commit(req, lseg, cinfo, ds_commit_idx); | 1602 | nfs_mark_request_commit(req, lseg, cinfo, ds_commit_idx); |
1608 | if (!cinfo->dreq) { | 1603 | if (!cinfo->dreq) |
1609 | dec_zone_page_state(req->wb_page, NR_UNSTABLE_NFS); | 1604 | nfs_clear_page_commit(req->wb_page); |
1610 | dec_bdi_stat(inode_to_bdi(page_file_mapping(req->wb_page)->host), | ||
1611 | BDI_RECLAIMABLE); | ||
1612 | } | ||
1613 | nfs_unlock_and_release_request(req); | 1605 | nfs_unlock_and_release_request(req); |
1614 | } | 1606 | } |
1615 | } | 1607 | } |