netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: access page->private by using page_private
@ 2013-07-12  7:17 Sunghan Suh
  2013-07-12 23:10 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Sunghan Suh @ 2013-07-12  7:17 UTC (permalink / raw)
  To: netdev, davem; +Cc: Sunghan Suh

Signed-off-by: Sunghan Suh <sunghan.suh@samsung.com>
---
 net/core/skbuff.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 77971a3..286607b 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -823,7 +823,7 @@ int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask)
 		page = alloc_page(gfp_mask);
 		if (!page) {
 			while (head) {
-				struct page *next = (struct page *)head->private;
+				struct page *next = (struct page *)page_private(head);
 				put_page(head);
 				head = next;
 			}
@@ -833,7 +833,7 @@ int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask)
 		memcpy(page_address(page),
 		       vaddr + f->page_offset, skb_frag_size(f));
 		kunmap_atomic(vaddr);
-		page->private = (unsigned long)head;
+		set_page_private(page, (unsigned long)head);
 		head = page;
 	}
 
@@ -847,7 +847,7 @@ int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask)
 	for (i = num_frags - 1; i >= 0; i--) {
 		__skb_fill_page_desc(skb, i, head, 0,
 				     skb_shinfo(skb)->frags[i].size);
-		head = (struct page *)head->private;
+		head = (struct page *)page_private(head);
 	}
 
 	skb_shinfo(skb)->tx_flags &= ~SKBTX_DEV_ZEROCOPY;
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: access page->private by using page_private
  2013-07-12  7:17 [PATCH] net: access page->private by using page_private Sunghan Suh
@ 2013-07-12 23:10 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-07-12 23:10 UTC (permalink / raw)
  To: sunghan.suh; +Cc: netdev

From: Sunghan Suh <sunghan.suh@samsung.com>
Date: Fri, 12 Jul 2013 16:17:23 +0900

> Signed-off-by: Sunghan Suh <sunghan.suh@samsung.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-12 23:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-12  7:17 [PATCH] net: access page->private by using page_private Sunghan Suh
2013-07-12 23:10 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).