/* Return 'true' if this is the case, else return 'false'.  */
static int nfs_can_coalesce_requests(struct nfs_page *prev, struct nfs_page *req)
/* Return 'true' if this is the case, else return 'false'.  */
static int nfs_can_coalesce_requests(struct nfs_page *prev, struct nfs_page *req)
{
	if (req->wb_context->cred != prev->wb_context->cred)
		return 0;
	if (req->wb_context->lockowner != prev->wb_context->lockowner)
		return 0;
	if (req->wb_context->state != prev->wb_context->state)
		return 0;
	if (req->wb_index != (prev->wb_index + 1))
		return 0;
	if (req->wb_pgbase != 0)
		return 0;
	if (prev->wb_pgbase + prev->wb_bytes != PAGE_CACHE_SIZE)
		return 0;
	return 1;
}