/* Release page and open context resources associated with a read/write request after it has completed.  */
void nfs_clear_request(struct nfs_page *req)
/* Release page and open context resources associated with a read/write request after it has completed.  */
void nfs_clear_request(struct nfs_page *req)
{
	struct page *page = req->wb_page;
	struct nfs_open_context *ctx = req->wb_context;
	if (page != NULL) {
		page_cache_release(page);
		req->wb_page = NULL;
	}
	if (ctx != NULL) {
		put_nfs_open_context(ctx);
		req->wb_context = NULL;
	}
}