summaryrefslogtreecommitdiff
path: root/include/linux/gfp.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@redhat.com>2015-05-07 07:11:51 +0300
committerDavid S. Miller <davem@davemloft.net>2015-05-12 17:39:26 +0300
commit0e39250845c0f91acc64264709b25f7f9b85c2c3 (patch)
treed9b2a71f0af7180f5f5fcb7f6a17bf93bf67a3bc /include/linux/gfp.h
parent2ee52ad4962b32797bac33fa29ec8159e64c4ee3 (diff)
downloadlinux-0e39250845c0f91acc64264709b25f7f9b85c2c3.tar.xz
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 <alexander.h.duyck@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/gfp.h')
0 files changed, 0 insertions, 0 deletions