From: Konrad Rzeszutek Wilk Date: Mon, 14 Mar 2011 16:41:26 +0000 (-0400) Subject: xen/blkback: Use kzalloc's, and GFP_KERNEL for data structures. X-Git-Tag: v3.0-rc1~162^2~16^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a742b02c75e6e76bd0833f9b6e702f1be7d7e008;p=pandora-kernel.git xen/blkback: Use kzalloc's, and GFP_KERNEL for data structures. The patch titled:"xen/blkback: Use 'vzalloc' for page arrays and pre-allocate pages." allocates the structures and its member variables using the 'vzalloc'. Daniel Stodden pointed out that vzalloc is good when we use big number of pages - while these are at the max two pages. We can do this using kzalloc. Also the GFP_HIGHMEM does not work properly with Xen, so take that out. We will have to revisit this when a "get_empty_pages_and_pagevec" type API shows up to leverage that. BugLink: http://mid.gmane.org/1299898639.11681.227.camel@agari.van.xensource.com CC: Daniel Stodden Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed