aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTom Haynes <thomas.haynes@primarydata.com>2015-02-13 16:19:54 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-02-13 17:47:26 -0500
commit487b9b8afde60986b606b3ee05169fb893adc153 (patch)
treea1172897b4b27d56cf3deb01fc4f52424b5beaf8 /fs/nfs
parentd15bc38df607c893c36f4962dca0f57174c6a5c9 (diff)
nfs: Can call nfs_clear_page_commit() instead
Signed-off-by: Tom Haynes <loghyr@primarydata.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/write.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 76c278acaefc..595d81e354d1 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1600,11 +1600,8 @@ void nfs_retry_commit(struct list_head *page_list,
1600 req = nfs_list_entry(page_list->next); 1600 req = nfs_list_entry(page_list->next);
1601 nfs_list_remove_request(req); 1601 nfs_list_remove_request(req);
1602 nfs_mark_request_commit(req, lseg, cinfo, ds_commit_idx); 1602 nfs_mark_request_commit(req, lseg, cinfo, ds_commit_idx);
1603 if (!cinfo->dreq) { 1603 if (!cinfo->dreq)
1604 dec_zone_page_state(req->wb_page, NR_UNSTABLE_NFS); 1604 nfs_clear_page_commit(req->wb_page);
1605 dec_bdi_stat(inode_to_bdi(page_file_mapping(req->wb_page)->host),
1606 BDI_RECLAIMABLE);
1607 }
1608 nfs_unlock_and_release_request(req); 1605 nfs_unlock_and_release_request(req);
1609 } 1606 }
1610} 1607}