From: Alexander Duyck Date: Thu, 7 May 2015 04:11:51 +0000 (-0700) Subject: net: Store virtual address instead of page in netdev_alloc_cache X-Git-Tag: omap-for-v4.2/fixes-rc1^2~134^2~323^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e39250845c0f91acc64264709b25f7f9b85c2c3;p=pandora-kernel.git net: Store virtual address instead of page in netdev_alloc_cache This change makes it so that we store the virtual address of the page in the netdev_alloc_cache instead of the page pointer. The idea behind this is to avoid multiple calls to page_address since the virtual address is required for every access, but the page pointer is only needed at allocation or reset of the page. While I was at it I also reordered the netdev_alloc_cache structure a bit so that the size is always 16 bytes by dropping size in the case where PAGE_SIZE is greater than or equal to 32KB. Signed-off-by: Alexander Duyck Signed-off-by: David S. Miller --- Reading git-diff-tree failed