Skip to contentSkip to conversation

Replacing alloc_pages(gfp,0) with alloc_page(gfp) in net/ipv4/ip_output.c.

PATCH New Shani Moideen 1 participant 1 message Jun 12, 2007

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Replacing alloc_pages(gfp,0) with alloc_page(gfp) in net/ipv4/ip_output.c.

Hi,
Replacing alloc_pages(gfp,0) with alloc_page(gfp) in net/ipv4/ip_output.c.

----

net/ipv4/ip_output.c +1 -1
index d6427d9..f9a87f6 100644
@@ -1003,7 +1003,7 @@ alloc_new_skb:
 			} else if (i < MAX_SKB_FRAGS) {
 				if (copy > PAGE_SIZE)
 					copy = PAGE_SIZE;
-				page = alloc_pages(sk->sk_allocation, 0);
+				page = alloc_page(sk->sk_allocation);
 				if (page == NULL)  {
 					err = -ENOMEM;
 					goto error;

Regards,
Shani