Commit 487b9b8a authored by Tom Haynes's avatar Tom Haynes Committed by Trond Myklebust

nfs: Can call nfs_clear_page_commit() instead

Signed-off-by: default avatarTom Haynes <loghyr@primarydata.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent d15bc38d
...@@ -1600,11 +1600,8 @@ void nfs_retry_commit(struct list_head *page_list, ...@@ -1600,11 +1600,8 @@ void nfs_retry_commit(struct list_head *page_list,
req = nfs_list_entry(page_list->next); req = nfs_list_entry(page_list->next);
nfs_list_remove_request(req); nfs_list_remove_request(req);
nfs_mark_request_commit(req, lseg, cinfo, ds_commit_idx); nfs_mark_request_commit(req, lseg, cinfo, ds_commit_idx);
if (!cinfo->dreq) { if (!cinfo->dreq)
dec_zone_page_state(req->wb_page, NR_UNSTABLE_NFS); nfs_clear_page_commit(req->wb_page);
dec_bdi_stat(inode_to_bdi(page_file_mapping(req->wb_page)->host),
BDI_RECLAIMABLE);
}
nfs_unlock_and_release_request(req); nfs_unlock_and_release_request(req);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment