summaryrefslogtreecommitdiffstats
path: root/lib/uuid.c
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2010-12-01 02:52:20 +0000
committerDavid S. Miller <davem@davemloft.net>2010-12-06 12:59:06 -0800
commit0af55bb58f8fa7865004ac48d16affe125ac1b7f (patch)
treeb91fb024121975b3897d2132da744abe288be378 /lib/uuid.c
parentf7fce74e387e0563e5a165704664aa5ee8b2f48b (diff)
downloadop-kernel-dev-0af55bb58f8fa7865004ac48d16affe125ac1b7f.zip
op-kernel-dev-0af55bb58f8fa7865004ac48d16affe125ac1b7f.tar.gz
af_packet: use vmalloc_to_page() instead for the addresss returned by vmalloc()
The following commit causes the pgv->buffer may point to the memory returned by vmalloc(). And we can't use virt_to_page() for the vmalloc address. This patch introduces a new inline function pgv_to_page(), which calls vmalloc_to_page() for the vmalloc address, and virt_to_page() for the __get_free_pages address. We used to increase page pointer to get the next page at the next page address, after Neil's patch, it is wrong, as the physical address may be not continuous. This patch also fixes this issue. commit 0e3125c755445664f00ad036e4fc2cd32fd52877 Author: Neil Horman <nhorman@tuxdriver.com> Date: Tue Nov 16 10:26:47 2010 -0800 packet: Enhance AF_PACKET implementation to not require high order contiguous memory allocation (v4) Signed-off-by: Changli Gao <xiaosuo@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/uuid.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud